toChannelMode method

ChannelMode toChannelMode()

Implementation

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