fromMap static method

MetaTagAttribute? fromMap(
  1. Map<String, dynamic>? map, {
  2. EnumMethod? enumMethod,
})

Gets a possible MetaTagAttribute instance from a Map value.

Implementation

static MetaTagAttribute? fromMap(
  Map<String, dynamic>? map, {
  EnumMethod? enumMethod,
}) {
  if (map == null) {
    return null;
  }
  final instance = MetaTagAttribute(name: map['name'], value: map['value']);
  return instance;
}