toProtocol method
Implementation
Protocol toProtocol() {
switch (this) {
case 'MQTT':
return Protocol.mqtt;
case 'HTTP':
return Protocol.http;
}
throw Exception('$this is not known in enum Protocol');
}
Protocol toProtocol() {
switch (this) {
case 'MQTT':
return Protocol.mqtt;
case 'HTTP':
return Protocol.http;
}
throw Exception('$this is not known in enum Protocol');
}