toJson method
Implementation
@override
Map<String, dynamic> toJson(UEmitEventEvent object) => object.when(
modEventTakedown: const ModEventTakedownConverter().toJson,
modEventAcknowledge: const ModEventAcknowledgeConverter().toJson,
modEventEscalate: const ModEventEscalateConverter().toJson,
modEventComment: const ModEventCommentConverter().toJson,
modEventLabel: const ModEventLabelConverter().toJson,
modEventReport: const ModEventReportConverter().toJson,
modEventMute: const ModEventMuteConverter().toJson,
modEventUnmute: const ModEventUnmuteConverter().toJson,
modEventMuteReporter: const ModEventMuteReporterConverter().toJson,
modEventUnmuteReporter: const ModEventUnmuteReporterConverter().toJson,
modEventReverseTakedown:
const ModEventReverseTakedownConverter().toJson,
modEventResolveAppeal: const ModEventResolveAppealConverter().toJson,
modEventEmail: const ModEventEmailConverter().toJson,
modEventTag: const ModEventTagConverter().toJson,
unknown: (data) => data,
);