fromString static method

PlanTier fromString(
  1. String? s
)

Implementation

static PlanTier fromString(String? s) => switch (s) {
  'enterprise' => enterprise,
  'team' => team,
  'professional' => professional,
  'trial' => trial,
  _ => none,
};