HTTPServerConfig.fromJson constructor
HTTPServerConfig.fromJson(
- Object? json
Implementation
factory HTTPServerConfig.fromJson(Object? json) {
final map = asJsonMap(json, 'http inbound');
return HTTPServerConfig(
accounts: map['accounts'] == null
? null
: asJsonList(map['accounts'], HTTPAccount.fromJson),
transparent: map['allowTransparent'] as bool?,
userLevel: map['userLevel'] as int?,
);
}