toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (address != null) 'address': address!,
      if (ipv4Compat != null) 'ipv4Compat': ipv4Compat!,
      if (namedPort != null) 'namedPort': namedPort!,
      if (portValue != null) 'portValue': portValue!,
      if (protocol != null) 'protocol': protocol!,
      if (resolverName != null) 'resolverName': resolverName!,
    };