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