ShadowsocksServerTarget.fromJson constructor
ShadowsocksServerTarget.fromJson(
- Object? json
Implementation
factory ShadowsocksServerTarget.fromJson(Object? json) {
final map = asJsonMap(json, 'shadowsocks server');
return ShadowsocksServerTarget(
address: XrayAddress.fromJson(map['address']),
port: map['port'] as int,
level: map['level'] as int?,
email: map['email'] as String?,
cipher: map['method'] as String?,
password: map['password'] as String,
uot: map['uot'] as bool?,
uotVersion: map['uotVersion'] as int?,
);
}