HysteriaServerConfig.fromJson constructor
HysteriaServerConfig.fromJson(
- Object? json
Implementation
factory HysteriaServerConfig.fromJson(Object? json) {
final map = asJsonMap(json, 'hysteria inbound');
return HysteriaServerConfig(
version: map['version'] as int?,
users: map['clients'] == null
? null
: asJsonList(map['clients'], HysteriaUserConfig.fromJson),
);
}