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