toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ChannelPrivacy.public:
      return 'PUBLIC';
    case ChannelPrivacy.private:
      return 'PRIVATE';
  }
}