VLessUser.fromJson constructor
VLessUser.fromJson(
- Object? json
Implementation
factory VLessUser.fromJson(Object? json) {
final map = asJsonMap(json, 'vless user');
return VLessUser(
email: map['email'] as String?,
level: map['level'] as int?,
id: map['id'] as String,
flow: map['flow'] as String?,
seed: map['seed'] as String?,
encryption: map['encryption'] as String?,
reverse: map['reverse'] == null
? null
: VLessReverseConfig.fromJson(map['reverse']),
testpre: map['testpre'] as int?,
testseed: (map['testseed'] as List?)?.cast<int>(),
);
}