Clothes.fromMap constructor

Clothes.fromMap(
  1. Map<String, dynamic> map
)

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']),
  );
}