HysteriaClientConfig.fromJson constructor

HysteriaClientConfig.fromJson(
  1. Object? json
)

Implementation

factory HysteriaClientConfig.fromJson(Object? json) {
  final map = asJsonMap(json, 'hysteria outbound');
  return HysteriaClientConfig(
    version: map['version'] as int,
    address: XrayAddress.fromJson(map['address']),
    port: map['port'] as int,
  );
}