toIpProtocol method
Implementation
IpProtocol toIpProtocol() {
switch (this) {
case 'TCP':
return IpProtocol.tcp;
case 'UDP':
return IpProtocol.udp;
}
throw Exception('$this is not known in enum IpProtocol');
}
IpProtocol toIpProtocol() {
switch (this) {
case 'TCP':
return IpProtocol.tcp;
case 'UDP':
return IpProtocol.udp;
}
throw Exception('$this is not known in enum IpProtocol');
}