GroupCall.fromJson constructor

GroupCall.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory GroupCall.fromJson(Map<String, dynamic> json) => GroupCall(
  id: json['id'],
  title: json['title'],
  scheduledStartDate: json['scheduled_start_date'],
  enabledStartNotification: json['enabled_start_notification'],
  isActive: json['is_active'],
  isJoined: json['is_joined'],
  needRejoin: json['need_rejoin'],
  canBeManaged: json['can_be_managed'],
  participantCount: json['participant_count'],
  loadedAllParticipants: json['loaded_all_participants'],
  recentSpeakers: List<GroupCallRecentSpeaker>.from((json['recent_speakers'] ?? []).map((item) => GroupCallRecentSpeaker.fromJson(item)).toList()),
  isMyVideoEnabled: json['is_my_video_enabled'],
  isMyVideoPaused: json['is_my_video_paused'],
  canEnableVideo: json['can_enable_video'],
  muteNewParticipants: json['mute_new_participants'],
  canToggleMuteNewParticipants: json['can_toggle_mute_new_participants'],
  recordDuration: json['record_duration'] ?? 0,
  isVideoRecorded: json['is_video_recorded'],
  duration: json['duration'],
  extra: json['@extra'],
  clientId: json['@client_id'],
);