toTransportProtocol method

TransportProtocol toTransportProtocol()

Implementation

TransportProtocol toTransportProtocol() {
  switch (this) {
    case 'tcp':
      return TransportProtocol.tcp;
    case 'udp':
      return TransportProtocol.udp;
  }
  throw Exception('$this is not known in enum TransportProtocol');
}