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