toRenewalStatus method
Implementation
RenewalStatus toRenewalStatus() {
switch (this) {
case 'PendingAutoRenewal':
return RenewalStatus.pendingAutoRenewal;
case 'PendingValidation':
return RenewalStatus.pendingValidation;
case 'Success':
return RenewalStatus.success;
case 'Failed':
return RenewalStatus.failed;
}
throw Exception('$this is not known in enum RenewalStatus');
}