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