fromJson static method

SubscriptionRecurrency fromJson(
  1. String name
)

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"');
  }
}