GroupCall.fromMap constructor

GroupCall.fromMap(
  1. Map<String, dynamic> map
)

Implementation

GroupCall.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  id = map['id'];
  title = map['title'];
  scheduled_start_date = map['scheduled_start_date'];
  enabled_start_notification = map['enabled_start_notification'];
  is_active = map['is_active'];
  is_rtmp_stream = map['is_rtmp_stream'];
  is_joined = map['is_joined'];
  need_rejoin = map['need_rejoin'];
  can_be_managed = map['can_be_managed'];
  participant_count = map['participant_count'];
  has_hidden_listeners = map['has_hidden_listeners'];
  loaded_all_participants = map['loaded_all_participants'];
  if (map['recent_speakers'] != null) {
    recent_speakers = [];
    for (var someValue in map['recent_speakers']) {
      if (someValue != null) {
        recent_speakers?.add(TdApiMap.fromMap(someValue) as GroupCallRecentSpeaker);
      }
    }
  }
  is_my_video_enabled = map['is_my_video_enabled'];
  is_my_video_paused = map['is_my_video_paused'];
  can_enable_video = map['can_enable_video'];
  mute_new_participants = map['mute_new_participants'];
  can_toggle_mute_new_participants = map['can_toggle_mute_new_participants'];
  record_duration = map['record_duration'];
  is_video_recorded = map['is_video_recorded'];
  duration = map['duration'];
}