toolsOzoneInboxListReports function

Future<XRPCResponse<InboxListReportsOutput>> toolsOzoneInboxListReports({
  1. String? did,
  2. String? filter,
  3. String? sortField,
  4. String? sortDirection,
  5. int? limit,
  6. String? cursor,
  7. required ServiceContext $ctx,
  8. String? $service,
  9. Map<String, String>? $headers,
  10. Map<String, String>? $unknown,
})

List moderation reports submitted by the authenticated account to this moderation service.

Implementation

Future<XRPCResponse<InboxListReportsOutput>> toolsOzoneInboxListReports({
  String? did,
  String? filter,
  String? sortField,
  String? sortDirection,
  int? limit,
  String? cursor,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.toolsOzoneInboxListReports,
  service: $service,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (did != null) 'did': did,
    if (filter != null) 'filter': filter,
    if (sortField != null) 'sortField': sortField,
    if (sortDirection != null) 'sortDirection': sortDirection,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
  },
  to: const InboxListReportsOutputConverter().fromJson,
);