toJson method

  1. @override
Map<String, dynamic> toJson(
  1. UEmitEventEvent object
)

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