toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (destinationIp != null) 'destinationIp': destinationIp!,
      if (destinationNetworkUri != null)
        'destinationNetworkUri': destinationNetworkUri!,
      if (destinationPort != null) 'destinationPort': destinationPort!,
      if (protocol != null) 'protocol': protocol!,
      if (sourceAgentUri != null) 'sourceAgentUri': sourceAgentUri!,
      if (sourceIp != null) 'sourceIp': sourceIp!,
      if (sourceNetworkUri != null) 'sourceNetworkUri': sourceNetworkUri!,
      if (sourcePort != null) 'sourcePort': sourcePort!,
    };