queryEvents method

Future<XRPCResponse<QueryEventsOutput>> queryEvents({
  1. List<String>? types,
  2. String? createdBy,
  3. String? sortDirection,
  4. DateTime? createdAfter,
  5. DateTime? createdBefore,
  6. String? subject,
  7. bool? includeAllUserRecords,
  8. int? limit,
  9. bool? hasComment,
  10. String? comment,
  11. List<String>? addedLabels,
  12. List<String>? removedLabels,
  13. List<String>? addedTags,
  14. List<String>? removedTags,
  15. List<String>? reportTypes,
  16. String? cursor,
  17. Map<String, String>? $unknown,
  18. Map<String, String>? $headers,
  19. GetClient? $client,
})

Implementation

Future<XRPCResponse<QueryEventsOutput>> queryEvents({
  List<String>? types,
  String? createdBy,
  String? sortDirection,
  DateTime? createdAfter,
  DateTime? createdBefore,
  String? subject,
  bool? includeAllUserRecords,
  int? limit,
  bool? hasComment,
  String? comment,
  List<String>? addedLabels,
  List<String>? removedLabels,
  List<String>? addedTags,
  List<String>? removedTags,
  List<String>? reportTypes,
  String? cursor,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<QueryEventsOutput>(
      ns.toolsOzoneModerationQueryEvents,
      headers: $headers,
      parameters: {
        if (types != null) 'types': types,
        if (createdBy != null) 'createdBy': createdBy,
        if (sortDirection != null) 'sortDirection': sortDirection,
        if (createdAfter != null) 'createdAfter': iso8601(createdAfter),
        if (createdBefore != null) 'createdBefore': iso8601(createdBefore),
        if (subject != null) 'subject': subject,
        if (includeAllUserRecords != null)
          'includeAllUserRecords': includeAllUserRecords.toString(),
        if (limit != null) 'limit': limit.toString(),
        if (hasComment != null) 'hasComment': hasComment.toString(),
        if (comment != null) 'comment': comment,
        if (addedLabels != null) 'addedLabels': addedLabels,
        if (removedLabels != null) 'removedLabels': removedLabels,
        if (addedTags != null) 'addedTags': addedTags,
        if (removedTags != null) 'removedTags': removedTags,
        if (reportTypes != null) 'reportTypes': reportTypes,
        if (cursor != null) 'cursor': cursor,
        ...?$unknown,
      },
      to: const QueryEventsOutputConverter().fromJson,
      client: $client,
    );