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