fromMap static method
override
Construct from Map.
Implementation
static GetGroupCallStreamSegment? 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 time_offset = _map['time_offset']! as int;
var scale = _map['scale']! as int;
var channel_id = _map['channel_id']! as int;
var video_quality = GroupCallVideoQuality.fromMap(_map['video_quality']);
return GetGroupCallStreamSegment(
extra: extra,
clientId: clientId,
group_call_id: group_call_id,
time_offset: time_offset,
scale: scale,
channel_id: channel_id,
video_quality: video_quality,
);
}