createReport method
Future<XRPCResponse<Report> >
createReport({
- required ReportSubject subject,
- ModerationReasonType reasonType = ModerationReasonType.spam,
- String? reason,
Implementation
Future<core.XRPCResponse<Report>> createReport({
required ReportSubject subject,
ModerationReasonType reasonType = ModerationReasonType.spam,
String? reason,
}) async =>
await _ctx.post(
ns.comAtprotoModerationCreateReport,
body: {
'subject': subject.toJson(),
'reasonType': reasonType.value,
'reason': reason,
},
to: Report.fromJson,
);