toChannel method
Implementation
Channel toChannel() {
switch (this) {
case 'VOICE':
return Channel.voice;
case 'CHAT':
return Channel.chat;
case 'TASK':
return Channel.task;
}
throw Exception('$this is not known in enum Channel');
}