toProtocol method

Protocol toProtocol()

Implementation

Protocol toProtocol() {
  switch (this) {
    case 'http':
      return Protocol.http;
    case 'https':
      return Protocol.https;
  }
  throw Exception('$this is not known in enum Protocol');
}