Implementation
Map<String, dynamic> toJson() => {
"listType": listType,
"listTypeID": listTypeId,
"languageID": languageId,
"minPrice": minPrice,
"maxPrice": maxPrice,
"sortBy": sortBy,
"keyword": keyword,
"brandsIDs": brandsIDs == null
? null
: List<dynamic>.from(brandsIDs!.map((x) => x)),
"categoryIDs": categoryIDs == null
? null
: List<dynamic>.from(categoryIDs!.map((x) => x)),
"colorIDs": colorIDs == null
? null
: List<dynamic>.from(colorIDs!.map((x) => x)),
"sizeIDs":
sizeIDs == null ? null : List<dynamic>.from(sizeIDs!.map((x) => x)),
"featureValues": featureValues == null
? null
: List<dynamic>.from(featureValues!.map((x) => x.toJson())),
"hasDiscount": hasDiscount,
"storeID": storeId,
"zoneID": zoneId,
"pageIndex": pageIndex,
"rowCount": rowCount,
"sortProp": sortProp,
"sortDir": sortDir,
};