fromJson static method
Inherited by: ProxyTypeHttp ProxyTypeMtproto ProxyTypeSocks5
Implementation
static ProxyTypeHttp? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ProxyTypeHttp(
username: (json['username'] as String?) ?? '',
password: (json['password'] as String?) ?? '',
httpOnly: (json['http_only'] as bool?) ?? false,
);
}