toIpProtocol method

IpProtocol toIpProtocol()

Implementation

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