toolsOzoneInboxUpdateSeen function

Future<XRPCResponse<InboxUpdateSeenOutput>> toolsOzoneInboxUpdateSeen({
  1. required List<InboxUpdateSeenSections> sections,
  2. DateTime? seenAt,
  3. required ServiceContext $ctx,
  4. String? $service,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Implementation

Future<XRPCResponse<InboxUpdateSeenOutput>> toolsOzoneInboxUpdateSeen({
  required List<InboxUpdateSeenSections> sections,
  DateTime? seenAt,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.toolsOzoneInboxUpdateSeen,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'sections': sections.map((e) => e.toJson()).toList(),
    if (seenAt != null) 'seenAt': iso8601(seenAt),
  },
  to: const InboxUpdateSeenOutputConverter().fromJson,
);