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