toSavingsPlanState method
Implementation
SavingsPlanState toSavingsPlanState() {
switch (this) {
case 'payment-pending':
return SavingsPlanState.paymentPending;
case 'payment-failed':
return SavingsPlanState.paymentFailed;
case 'active':
return SavingsPlanState.active;
case 'retired':
return SavingsPlanState.retired;
case 'queued':
return SavingsPlanState.queued;
case 'queued-deleted':
return SavingsPlanState.queuedDeleted;
}
throw Exception('$this is not known in enum SavingsPlanState');
}