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