toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'id': id,
'unique_id': uniqueId.toString(),
'title': title,
'invite_link': inviteLink,
'paid_message_star_count': paidMessageStarCount,
'scheduled_start_date': scheduledStartDate,
'enabled_start_notification': enabledStartNotification,
'is_active': isActive,
'is_video_chat': isVideoChat,
'is_live_story': isLiveStory,
'is_rtmp_stream': isRtmpStream,
'is_joined': isJoined,
'need_rejoin': needRejoin,
'is_owned': isOwned,
'can_be_managed': canBeManaged,
'participant_count': participantCount,
'has_hidden_listeners': hasHiddenListeners,
'loaded_all_participants': loadedAllParticipants,
'message_sender_id': messageSenderId?.toJson(),
'recent_speakers': recentSpeakers.map((item) => item.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,
'can_send_messages': canSendMessages,
'are_messages_allowed': areMessagesAllowed,
'can_toggle_are_messages_allowed': canToggleAreMessagesAllowed,
'can_delete_messages': canDeleteMessages,
'record_duration': recordDuration,
'is_video_recorded': isVideoRecorded,
'duration': duration,
'@type': constructor,
};