toMailType method

MailType toMailType()

Implementation

MailType toMailType() {
  switch (this) {
    case 'MARKETING':
      return MailType.marketing;
    case 'TRANSACTIONAL':
      return MailType.transactional;
  }
  throw Exception('$this is not known in enum MailType');
}