toolsOzoneInboxListNotifications function

Future<XRPCResponse<InboxListNotificationsOutput>> toolsOzoneInboxListNotifications({
  1. InboxListNotificationsSection? section,
  2. List<InboxListNotificationsReasons>? reasons,
  3. bool? unreadOnly,
  4. int? limit,
  5. String? cursor,
  6. String? did,
  7. required ServiceContext $ctx,
  8. String? $service,
  9. Map<String, String>? $headers,
  10. Map<String, String>? $unknown,
})

Implementation

Future<XRPCResponse<InboxListNotificationsOutput>>
toolsOzoneInboxListNotifications({
  InboxListNotificationsSection? section,
  List<InboxListNotificationsReasons>? reasons,
  bool? unreadOnly,
  int? limit,
  String? cursor,
  String? did,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.toolsOzoneInboxListNotifications,
  service: $service,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (section != null) 'section': section.toJson(),
    if (reasons != null) 'reasons': reasons.map((e) => e.toJson()).toList(),
    if (unreadOnly != null) 'unreadOnly': unreadOnly,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
    if (did != null) 'did': did,
  },
  to: const InboxListNotificationsOutputConverter().fromJson,
);