toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => withoutNulls({
  'address': address?.toJson(),
  'port': port,
  'network': network?.toJson(),
  'security': security?.toJson(),
  'finalmask': finalmask?.toJson(),
  'rawSettings': rawSettings?.toJson(),
  'tcpSettings': tcpSettings?.toJson(),
  'xhttpSettings': xhttpSettings?.toJson(),
  'kcpSettings': kcpSettings?.toJson(),
  'wsSettings': wsSettings?.toJson(),
  'httpupgradeSettings': httpupgradeSettings?.toJson(),
  'splithttpSettings': splithttpSettings?.toJson(),
  'grpcSettings': grpcSettings?.toJson(),
  'hysteriaSettings': hysteriaSettings?.toJson(),
  'tlsSettings': tlsSettings?.toJson(),
  'realitySettings': realitySettings?.toJson(),
  'sockopt': sockopt?.toJson(),
});