toSubscriberType method

SubscriberType toSubscriberType()

Implementation

SubscriberType toSubscriberType() {
  switch (this) {
    case 'EMAIL':
      return SubscriberType.email;
    case 'SNS':
      return SubscriberType.sns;
  }
  throw Exception('$this is not known in enum SubscriberType');
}