toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'ipv4': ipv4,
    'ipv6': ipv6,
    'dns': dns,
    'dns_srv': dnsSrv,
    'port': port,
  };
}