toJson method
Implementation
@override
JsonMap toJson() {
if (network.isEmpty) {
throw StateError('Xray streamSettings.network must not be empty');
}
return {
'network': network,
'security': security,
'tcpSettings': tcpSettings,
'kcpSettings': kcpSettings,
'wsSettings': wsSettings,
'httpSettings': httpSettings,
'h2Setting': h2Settings,
'tlsSettings': tlsSettings,
'quicSettings': quicSettings,
'realitySettings': realitySettings,
'grpcSettings': grpcSettings,
'xhttpSettings': xhttpSettings,
'dsSettings': dsSettings,
'sockopt': sockopt,
};
}