ProxyAuth.fromJson constructor

ProxyAuth.fromJson(
  1. Map<String, dynamic> json
)

Creates a ProxyAuth from a JSON map

Implementation

factory ProxyAuth.fromJson(Map<String, dynamic> json) {
  return ProxyAuth(
    username: json['username'] as String,
    password: json['password'] as String,
    method: ProxyAuthMethod.values[json['method'] as int],
    domain: json['domain'] as String?,
  );
}