toolsOzoneInboxAppealActionedSubject function

Future<XRPCResponse<SubjectView>> toolsOzoneInboxAppealActionedSubject({
  1. UInboxAppealActionedSubjectAction? action,
  2. required UInboxAppealActionedSubjectSubject subject,
  3. String? reason,
  4. ModTool? modTool,
  5. required ServiceContext $ctx,
  6. String? $service,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

Appeal a moderation action affecting the user's account or content.

Implementation

Future<XRPCResponse<SubjectView>> toolsOzoneInboxAppealActionedSubject({
  UInboxAppealActionedSubjectAction? action,
  required UInboxAppealActionedSubjectSubject subject,
  String? reason,
  ModTool? modTool,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.toolsOzoneInboxAppealActionedSubject,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    if (action != null) 'action': action.toJson(),
    'subject': subject.toJson(),
    if (reason != null) 'reason': reason,
    if (modTool != null) 'modTool': const ModToolConverter().toJson(modTool),
  },
  to: const SubjectViewConverter().fromJson,
);