toTemplateType method

TemplateType toTemplateType()

Implementation

TemplateType toTemplateType() {
  switch (this) {
    case 'EMAIL':
      return TemplateType.email;
    case 'SMS':
      return TemplateType.sms;
    case 'VOICE':
      return TemplateType.voice;
    case 'PUSH':
      return TemplateType.push;
  }
  throw Exception('$this is not known in enum TemplateType');
}