toIPAddressVersion method
Implementation
IPAddressVersion toIPAddressVersion() {
switch (this) {
case 'IPV4':
return IPAddressVersion.ipv4;
case 'IPV6':
return IPAddressVersion.ipv6;
}
throw Exception('$this is not known in enum IPAddressVersion');
}