GroupCallParticipant.fromJson constructor

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

Parse from a json

Implementation

factory GroupCallParticipant.fromJson(Map<String, dynamic> json) =>
    GroupCallParticipant(
      participantId: MessageSender.fromJson(json['participant_id']),
      audioSourceId: json['audio_source_id'],
      screenSharingAudioSourceId: json['screen_sharing_audio_source_id'],
      videoInfo: json['video_info'] == null
          ? null
          : GroupCallParticipantVideoInfo.fromJson(json['video_info']),
      screenSharingVideoInfo: json['screen_sharing_video_info'] == null
          ? null
          : GroupCallParticipantVideoInfo.fromJson(
              json['screen_sharing_video_info']),
      bio: json['bio'],
      isCurrentUser: json['is_current_user'],
      isSpeaking: json['is_speaking'],
      isHandRaised: json['is_hand_raised'],
      canBeMutedForAllUsers: json['can_be_muted_for_all_users'],
      canBeUnmutedForAllUsers: json['can_be_unmuted_for_all_users'],
      canBeMutedForCurrentUser: json['can_be_muted_for_current_user'],
      canBeUnmutedForCurrentUser: json['can_be_unmuted_for_current_user'],
      isMutedForAllUsers: json['is_muted_for_all_users'],
      isMutedForCurrentUser: json['is_muted_for_current_user'],
      canUnmuteSelf: json['can_unmute_self'],
      volumeLevel: json['volume_level'],
      order: json['order'],
    );