toRenewalStatus method
Implementation
RenewalStatus toRenewalStatus() {
switch (this) {
case 'PENDING_AUTO_RENEWAL':
return RenewalStatus.pendingAutoRenewal;
case 'PENDING_VALIDATION':
return RenewalStatus.pendingValidation;
case 'SUCCESS':
return RenewalStatus.success;
case 'FAILED':
return RenewalStatus.failed;
}
throw Exception('$this is not known in enum RenewalStatus');
}