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