toChannelMode method
Implementation
ChannelMode toChannelMode() {
switch (this) {
case 'UNRESTRICTED':
return ChannelMode.unrestricted;
case 'RESTRICTED':
return ChannelMode.restricted;
}
throw Exception('$this is not known in enum ChannelMode');
}