toChannelPrivacy method

ChannelPrivacy toChannelPrivacy()

Implementation

ChannelPrivacy toChannelPrivacy() {
  switch (this) {
    case 'PUBLIC':
      return ChannelPrivacy.public;
    case 'PRIVATE':
      return ChannelPrivacy.private;
  }
  throw Exception('$this is not known in enum ChannelPrivacy');
}