toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
if (pageSize != null) "pageSize": pageSize,
if (pageNumber != null) "pageNumber": pageNumber,
"fromCreatedAt": fromCreatedAt?.toIso8601String(),
"toCreatedAt": toCreatedAt?.toIso8601String(),
"tags": tags == null ? null : List<dynamic>.from(tags!.map((int x) => x)),
if (orderBy != null) "orderBy": orderBy,
if (ids != null) "ids": List<dynamic>.from(ids!.map((String x) => x)),
if (creatorId != null) "creatorId": creatorId,
};