toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RenewalStatus.pendingAutoRenewal:
      return 'PENDING_AUTO_RENEWAL';
    case RenewalStatus.pendingValidation:
      return 'PENDING_VALIDATION';
    case RenewalStatus.success:
      return 'SUCCESS';
    case RenewalStatus.failed:
      return 'FAILED';
  }
}