fromMap static method

SetGroupCallParticipantVolumeLevel? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static SetGroupCallParticipantVolumeLevel? fromMap(
    Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  if (_ != CONSTRUCTOR) return null;
  var extra = _map['@extra'];
  var clientId = _map['@clientId'];
  var group_call_id = _map['group_call_id']! as int;
  var participant_id = MessageSender.fromMap(_map['participant_id'])!;
  var volume_level = _map['volume_level']! as int;
  return SetGroupCallParticipantVolumeLevel(
    extra: extra,
    clientId: clientId,
    group_call_id: group_call_id,
    participant_id: participant_id,
    volume_level: volume_level,
  );
}