toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"userId": userId,
"productId": productId,
"targetUserId": targetUserId,
"showMedia": showMedia,
"pageSize": pageSize,
"pageNumber": pageNumber,
"fromCreatedAt": fromCreatedAt?.toIso8601String(),
"toCreatedAt": toCreatedAt?.toIso8601String(),
"orderByCreatedAt": orderByCreatedAt,
"orderByCreatedAtDesc": orderByCreatedAtDesc,
"orderByUpdatedAt": orderByUpdatedAt,
"orderByUpdatedAtDesc": orderByUpdatedAtDesc,
"tags": tags == null ? null : List<dynamic>.from(tags!.map((dynamic x) => x)),
};