fromString static method

EntitlementSource fromString(
  1. String? s
)

Implementation

static EntitlementSource fromString(String? s) => switch (s) {
  'stripe' => stripe,
  'revenuecat' => revenuecat,
  'grant' => grant,
  'trial' => trial,
  'expired' => expired,
  _ => none,
};