toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => withoutNulls({
  'ruleTag': ruleTag,
  'outboundTag': outboundTag,
  'balancerTag': balancerTag,
  'domain': domain?.toJson(),
  'domains': domains?.toJson(),
  'ip': ip?.toJson(),
  'port': port?.toJson(),
  'network': network?.toJson(),
  'sourceIP': sourceIP?.toJson(),
  'source': source?.toJson(),
  'sourcePort': sourcePort?.toJson(),
  'user': user?.toJson(),
  'vlessRoute': vlessRoute?.toJson(),
  'inboundTag': inboundTag?.toJson(),
  'protocol': protocols?.toJson(),
  'attrs': attributes,
  'localIP': localIP?.toJson(),
  'localPort': localPort?.toJson(),
  'process': process?.toJson(),
  'webhook': webhook?.toJson(),
});