toProtocol method
Implementation
Protocol toProtocol() {
switch (this) {
case 'zixi-push':
return Protocol.zixiPush;
case 'rtp-fec':
return Protocol.rtpFec;
case 'rtp':
return Protocol.rtp;
case 'zixi-pull':
return Protocol.zixiPull;
case 'rist':
return Protocol.rist;
}
throw Exception('$this is not known in enum Protocol');
}