toProtocolType method
Implementation
ProtocolType toProtocolType() {
switch (this) {
case 'WEBSOCKET':
return ProtocolType.websocket;
case 'HTTP':
return ProtocolType.http;
}
throw Exception('$this is not known in enum ProtocolType');
}