toProtocol method
Implementation
Protocol toProtocol() {
switch (this) {
case 'TCP':
return Protocol.tcp;
case 'UDP':
return Protocol.udp;
}
throw Exception('$this is not known in enum Protocol');
}
Protocol toProtocol() {
switch (this) {
case 'TCP':
return Protocol.tcp;
case 'UDP':
return Protocol.udp;
}
throw Exception('$this is not known in enum Protocol');
}