toPortProtocol method
Implementation
PortProtocol toPortProtocol() {
switch (this) {
case 'http':
return PortProtocol.http;
case 'tcp':
return PortProtocol.tcp;
}
throw Exception('$this is not known in enum PortProtocol');
}