toolsOzoneInboxUpdateSeen function
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,
);