toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"creatorId": creatorId,
if (selectorArgs != null) "selectorArgs": selectorArgs?.toMap(),
if (pageSize != null) "pageSize": pageSize,
if (pageNumber != null) "pageNumber": pageNumber,
"fromCreatedAt": fromCreatedAt?.toIso8601String(),
"toCreatedAt": toCreatedAt?.toIso8601String(),
"tags": tags == null ? <dynamic>[] : List<dynamic>.from(tags!.map((int x) => x)),
if (ids != null) "ids": List<dynamic>.from(ids!.map((String x) => x)),
if (orderBy != null) "orderBy": orderBy,
"pathContains": pathContains,
"statusCode": statusCode,
"minDurationMs": minDurationMs,
"maxDurationMs": maxDurationMs,
"userId": userId,
"ipAddress": ipAddress,
"onlyErrors": onlyErrors,
};