toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (remoteAddr != null) 'remoteAddr': remoteAddr,
    if (remotePort != null) 'remotePort': remotePort,
    if (localAddr != null) 'localAddr': localAddr,
    if (localPort != null) 'localPort': localPort,
    if (dnsQueryType != null) 'dnsQueryType': dnsQueryType!.toJson(),
    if (sendBufferSize != null) 'sendBufferSize': sendBufferSize,
    if (receiveBufferSize != null) 'receiveBufferSize': receiveBufferSize,
  };
}