Clothes.fromMap constructor
Transform from map to Clothes
Implementation
factory Clothes.fromMap(Map<String, dynamic> map) {
return Clothes(
clotheType: Converter.enumFromJson(ClotheType.values, map['clotheType']),
clotheColor:
Converter.enumFromJson(ClotheColor.values, map['clotheColor']),
graphicType:
Converter.enumFromJson(GraphicType.values, map['graphicType']),
);
}