toSubscriptionState method
Implementation
SubscriptionState toSubscriptionState() {
switch (this) {
case 'ACTIVE':
return SubscriptionState.active;
case 'INACTIVE':
return SubscriptionState.inactive;
}
throw Exception('$this is not known in enum SubscriptionState');
}