toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"query": query,
"title": title,
"code": code,
"parentId": parentId,
"userId": userId,
"minStock": minStock,
"maxStock": maxStock,
"minPrice": minPrice,
"maxPrice": maxPrice,
"showCategories": showCategories,
"showCategoriesMedia": showCategoriesMedia,
"showMedia": showMedia,
"showUser": showUser,
"showUserMedia": showUserMedia,
"showUserCategory": showUserCategory,
"showChildren": showChildren,
"showChildrenDepth": showChildrenDepth,
"ids": ids == null ? null : List<dynamic>.from(ids!.map((dynamic x) => x)),
"pageSize": pageSize,
"pageNumber": pageNumber,
"fromCreatedAt": fromCreatedAt?.toIso8601String(),
"toCreatedAt": toCreatedAt?.toIso8601String(),
"orderByCreatedAt": orderByCreatedAt,
"orderByCreatedAtDesc": orderByCreatedAtDesc,
"orderByUpdatedAt": orderByUpdatedAt,
"orderByUpdatedAtDesc": orderByUpdatedAtDesc,
"showIsFollowing": showIsFollowing,
"showChildrenCount": showChildrenCount,
"showCommentCount": showCommentCount,
"tags": tags == null ? null : List<dynamic>.from(tags!.map((dynamic x) => x)),
};