toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (activeLiveChatId != null) 'activeLiveChatId': activeLiveChatId!,
      if (actualEndTime != null)
        'actualEndTime': actualEndTime!.toUtc().toIso8601String(),
      if (actualStartTime != null)
        'actualStartTime': actualStartTime!.toUtc().toIso8601String(),
      if (concurrentViewers != null) 'concurrentViewers': concurrentViewers!,
      if (scheduledEndTime != null)
        'scheduledEndTime': scheduledEndTime!.toUtc().toIso8601String(),
      if (scheduledStartTime != null)
        'scheduledStartTime': scheduledStartTime!.toUtc().toIso8601String(),
    };