toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "id": id,
    "title": title,
    "scheduled_start_date": scheduledStartDate,
    "enabled_start_notification": enabledStartNotification,
    "is_active": isActive,
    "is_rtmp_stream": isRtmpStream,
    "is_joined": isJoined,
    "need_rejoin": needRejoin,
    "can_be_managed": canBeManaged,
    "participant_count": participantCount,
    "has_hidden_listeners": hasHiddenListeners,
    "loaded_all_participants": loadedAllParticipants,
    "recent_speakers": recentSpeakers.map((i) => i.toJson()).toList(),
    "is_my_video_enabled": isMyVideoEnabled,
    "is_my_video_paused": isMyVideoPaused,
    "can_enable_video": canEnableVideo,
    "mute_new_participants": muteNewParticipants,
    "can_toggle_mute_new_participants": canToggleMuteNewParticipants,
    "record_duration": recordDuration,
    "is_video_recorded": isVideoRecorded,
    "duration": duration,
  };
}