toJson method

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

Implementation

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