fromString static method

GrantType fromString(
  1. String? s
)

Implementation

static GrantType fromString(String? s) => switch (s) {
  'comp_plan' => compPlan,
  'discount' => discount,
  'usage_boost' => usageBoost,
  'extend_trial' => extendTrial,
  _ => compPlan,
};