toSubscriptionStatus method

SubscriptionStatus toSubscriptionStatus()

Implementation

SubscriptionStatus toSubscriptionStatus() {
  switch (this) {
    case 'OPT_IN':
      return SubscriptionStatus.optIn;
    case 'OPT_OUT':
      return SubscriptionStatus.optOut;
  }
  throw Exception('$this is not known in enum SubscriptionStatus');
}