toChannelRole method

ChannelRole toChannelRole()

Implementation

ChannelRole toChannelRole() {
  switch (this) {
    case 'MASTER':
      return ChannelRole.master;
    case 'VIEWER':
      return ChannelRole.viewer;
  }
  throw Exception('$this is not known in enum ChannelRole');
}