GroupCallParticipant.fromJson constructor
Parses a GroupCallParticipant from TDLib JSON.
Implementation
factory GroupCallParticipant.fromJson(
Map<String, dynamic> json,
) => GroupCallParticipant(
participantId: _readObject(json['participant_id'], MessageSender.fromJson),
audioSourceId: _readInt(json['audio_source_id']),
screenSharingAudioSourceId: _readInt(
json['screen_sharing_audio_source_id'],
),
videoInfo: _readOptional(
json['video_info'],
GroupCallParticipantVideoInfo.fromJson,
),
screenSharingVideoInfo: _readOptional(
json['screen_sharing_video_info'],
GroupCallParticipantVideoInfo.fromJson,
),
bio: _readString(json['bio']),
isCurrentUser: _readBool(json['is_current_user']),
isSpeaking: _readBool(json['is_speaking']),
isHandRaised: _readBool(json['is_hand_raised']),
canBeMutedForAllUsers: _readBool(json['can_be_muted_for_all_users']),
canBeUnmutedForAllUsers: _readBool(json['can_be_unmuted_for_all_users']),
canBeMutedForCurrentUser: _readBool(json['can_be_muted_for_current_user']),
canBeUnmutedForCurrentUser: _readBool(
json['can_be_unmuted_for_current_user'],
),
isMutedForAllUsers: _readBool(json['is_muted_for_all_users']),
isMutedForCurrentUser: _readBool(json['is_muted_for_current_user']),
canUnmuteSelf: _readBool(json['can_unmute_self']),
volumeLevel: _readInt(json['volume_level']),
order: _readString(json['order']),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);