fromMap static method
override
Construct from Map.
Implementation
static ProxyType? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'proxyTypeHttp':
return ProxyTypeHttp.fromMap(_map);
case 'proxyTypeSocks5':
return ProxyTypeSocks5.fromMap(_map);
case 'proxyTypeMtproto':
return ProxyTypeMtproto.fromMap(_map);
case null:
default:
return null;
}
}