fromMap static method
override
Construct from Map.
Implementation
static CallServer? 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 int64;
var ip_address = _map['ip_address']! as String;
var ipv6_address = _map['ipv6_address']! as String;
var port = _map['port']! as int;
var type = CallServerType.fromMap(_map['type'])!;
return CallServer(
extra: extra,
clientId: clientId,
id: id,
ip_address: ip_address,
ipv6_address: ipv6_address,
port: port,
type: type,
);
}