toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SubscriptionStatus.optIn:
      return 'OPT_IN';
    case SubscriptionStatus.optOut:
      return 'OPT_OUT';
  }
}