Attributes.fromMap constructor
Implementation
factory Attributes.fromMap(Map<String, dynamic> map) {
final type = EnumToString.fromString(AttributesType.values, map['type']) ??
AttributesType.NULL;
final json = map['data'];
return Attributes(type, json);
}