switchFlaggedFeaturesEndpoint static method

String switchFlaggedFeaturesEndpoint(
  1. AppConfig context
)

Implementation

static String switchFlaggedFeaturesEndpoint(AppConfig context) {
  switch (context.environment) {
    case AppEnvironment.PROD:
      return kProdSwitchFlaggedFeaturesEndpoint;
    case AppEnvironment.DEMO:
      return kDemoSwitchFlaggedFeaturesEndpoint;
    case AppEnvironment.E2E:
      return ke2eSwitchFlaggedFeaturesEndpoint;
    default:
      return kTestSwitchFlaggedFeaturesEndpoint;
  }
}