fromJson static method
Inherited by: ProxyTypeHttp ProxyTypeMtproto ProxyTypeSocks5 ProxyTypeWeb
Implementation
static ProxyTypeWeb? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ProxyTypeWeb(
path: (json['path'] as String?) ?? '',
secret: json['secret'] as String?,
);
}