QuicParamsConfig.fromJson constructor
QuicParamsConfig.fromJson(
- Object? json
Implementation
factory QuicParamsConfig.fromJson(Object? json) {
final map = asJsonMap(json, 'quicParams');
return QuicParamsConfig(
congestion: map['congestion'] as String?,
debug: map['debug'] as bool?,
bbrProfile: map['bbrProfile'] as String?,
brutalUp: map['brutalUp'] == null
? null
: Bandwidth.fromJson(map['brutalUp']),
brutalDown: map['brutalDown'] == null
? null
: Bandwidth.fromJson(map['brutalDown']),
udpHop: map['udpHop'] == null ? null : UdpHop.fromJson(map['udpHop']),
initStreamReceiveWindow: map['initStreamReceiveWindow'] as int?,
maxStreamReceiveWindow: map['maxStreamReceiveWindow'] as int?,
initConnectionReceiveWindow: map['initConnectionReceiveWindow'] as int?,
maxConnectionReceiveWindow: map['maxConnectionReceiveWindow'] as int?,
maxIdleTimeout: map['maxIdleTimeout'] as int?,
keepAlivePeriod: map['keepAlivePeriod'] as int?,
disablePathMTUDiscovery: map['disablePathMTUDiscovery'] as bool?,
maxIncomingStreams: map['maxIncomingStreams'] as int?,
);
}