toIpAddressType method

IpAddressType toIpAddressType()

Implementation

IpAddressType toIpAddressType() {
  switch (this) {
    case 'ipv4':
      return IpAddressType.ipv4;
    case 'dualstack':
      return IpAddressType.dualstack;
  }
  throw Exception('$this is not known in enum IpAddressType');
}