fromMap static method
override
Construct from Map.
Implementation
static Call? 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 id = _map['id']! as int;
var user_id = _map['user_id']! as int;
var is_outgoing = _map['is_outgoing']! as bool;
var is_video = _map['is_video']! as bool;
var state = CallState.fromMap(_map['state'])!;
return Call(
extra: extra,
clientId: clientId,
id: id,
user_id: user_id,
is_outgoing: is_outgoing,
is_video: is_video,
state: state,
);
}