toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (networkUri != null) 'networkUri': networkUri!,
      if (newDestinationIp != null) 'newDestinationIp': newDestinationIp!,
      if (newDestinationPort != null)
        'newDestinationPort': newDestinationPort!,
      if (newSourceIp != null) 'newSourceIp': newSourceIp!,
      if (newSourcePort != null) 'newSourcePort': newSourcePort!,
      if (oldDestinationIp != null) 'oldDestinationIp': oldDestinationIp!,
      if (oldDestinationPort != null)
        'oldDestinationPort': oldDestinationPort!,
      if (oldSourceIp != null) 'oldSourceIp': oldSourceIp!,
      if (oldSourcePort != null) 'oldSourcePort': oldSourcePort!,
      if (protocol != null) 'protocol': protocol!,
      if (subnetUri != null) 'subnetUri': subnetUri!,
    };