fromJson static method
Implementation
static SubscriptionRecurrency fromJson(String name) {
switch (name) {
case 'monthly':
return SubscriptionRecurrency.monthly;
case 'yearly':
return SubscriptionRecurrency.yearly;
default:
throw ArgumentError(
'Value "$name" cannot be converted to "SubscriptionRecurrency"');
}
}