toolsOzoneInboxGetUnreadCount function

Future<XRPCResponse<InboxGetUnreadCountOutput>> toolsOzoneInboxGetUnreadCount({
  1. InboxGetUnreadCountSection? section,
  2. String? did,
  3. required ServiceContext $ctx,
  4. String? $service,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Implementation

Future<XRPCResponse<InboxGetUnreadCountOutput>> toolsOzoneInboxGetUnreadCount({
  InboxGetUnreadCountSection? section,
  String? did,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.toolsOzoneInboxGetUnreadCount,
  service: $service,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (section != null) 'section': section.toJson(),
    if (did != null) 'did': did,
  },
  to: const InboxGetUnreadCountOutputConverter().fromJson,
);