subscriptionTypeFromOrgType function

SubscriptionType? subscriptionTypeFromOrgType(
  1. String? orgType
)

Determine subscription type from organization type string.

Implementation

SubscriptionType? subscriptionTypeFromOrgType(String? orgType) {
  switch (orgType) {
    case 'neomage_max':
      return SubscriptionType.max;
    case 'neomage_pro':
      return SubscriptionType.pro;
    case 'neomage_enterprise':
      return SubscriptionType.enterprise;
    case 'neomage_team':
      return SubscriptionType.team;
    default:
      return null;
  }
}