toChannelType method

ChannelType toChannelType()

Implementation

ChannelType toChannelType() {
  switch (this) {
    case 'Facebook':
      return ChannelType.facebook;
    case 'Slack':
      return ChannelType.slack;
    case 'Twilio-Sms':
      return ChannelType.twilioSms;
    case 'Kik':
      return ChannelType.kik;
  }
  throw Exception('$this is not known in enum ChannelType');
}