toChannelProtocol method

ChannelProtocol toChannelProtocol()

Implementation

ChannelProtocol toChannelProtocol() {
  switch (this) {
    case 'WSS':
      return ChannelProtocol.wss;
    case 'HTTPS':
      return ChannelProtocol.https;
  }
  throw Exception('$this is not known in enum ChannelProtocol');
}