VLessInboundConfig.fromJson constructor
VLessInboundConfig.fromJson(
- Object? json
Implementation
factory VLessInboundConfig.fromJson(Object? json) {
final map = asJsonMap(json, 'vless inbound');
return VLessInboundConfig(
clients: map['clients'] == null
? null
: asJsonList(map['clients'], VLessUser.fromJson),
decryption: map['decryption'] as String,
fallbacks: map['fallbacks'] == null
? null
: asJsonList(map['fallbacks'], VLessInboundFallback.fromJson),
flow: map['flow'] as String?,
testseed: (map['testseed'] as List?)?.cast<int>(),
);
}