VMessOutboundConfig.fromJson constructor
VMessOutboundConfig.fromJson(
- Object? json
Implementation
factory VMessOutboundConfig.fromJson(Object? json) {
final map = asJsonMap(json, 'vmess outbound');
return VMessOutboundConfig(
address: map['address'] == null
? null
: XrayAddress.fromJson(map['address']),
port: map['port'] as int?,
level: map['level'] as int?,
email: map['email'] as String?,
id: map['id'] as String?,
security: map['security'] == null
? null
: VmessSecurity.fromJson(map['security']),
experiments: map['experiments'] as String?,
receivers: map['vnext'] == null
? null
: asJsonList(map['vnext'], VMessOutboundTarget.fromJson),
);
}