ListModel.fromJson(- Map<String, dynamic> json
)
Implementation
factory ListModel.fromJson(Map<String, dynamic> json) => ListModel(
listType: json["listType"],
listTypeId: json["listTypeID"],
languageId: json["languageID"],
minPrice: json["minPrice"],
maxPrice: json["maxPrice"],
sortBy: json["sortBy"],
keyword: json["keyword"],
brandsIDs: json["brandsIDs"] == null
? null
: List<int>.from(json["brandsIDs"].map((x) => x)),
categoryIDs: json["categoryIDs"] == null
? null
: List<int>.from(json["categoryIDs"].map((x) => x)),
colorIDs: json["colorIDs"] == null
? null
: List<int>.from(json["colorIDs"].map((x) => x)),
sizeIDs: json["sizeIDs"] == null
? null
: List<int>.from(json["sizeIDs"].map((x) => x)),
featureValues: json["featureValues"] == null
? null
: List<FeatureValue>.from(
json["featureValues"].map((x) => FeatureValue.fromJson(x))),
hasDiscount: json["hasDiscount"],
storeId: json["storeID"],
zoneId: json["zoneID"],
pageIndex: json["pageIndex"],
rowCount: json["rowCount"],
sortProp: json["sortProp"],
sortDir: json["sortDir"],
);