fromMap static method
override
Construct from Map.
Implementation
static GroupCallParticipantVideoInfo? 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 source_groups = List<GroupCallVideoSourceGroup>.from(
(_map["source_groups"] ?? []).map(
(e) => GroupCallVideoSourceGroup.fromMap(e),
),
);
var endpoint_id = _map['endpoint_id']! as String;
var is_paused = _map['is_paused']! as bool;
return GroupCallParticipantVideoInfo(
extra: extra,
clientId: clientId,
source_groups: source_groups,
endpoint_id: endpoint_id,
is_paused: is_paused,
);
}