toJson method

Map<String, dynamic> toJson()

Implementation

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