getFeatureFlags method

Map<String?, dynamic> getFeatureFlags()

Get feature flags Map with keys as String instead of Enum Useful as an argument sent to the Kotlin/Swift code

Implementation

Map<String?, dynamic> getFeatureFlags() {
  Map<String?, dynamic> featureFlagsWithStrings = HashMap();

  featureFlags?.forEach((key, value) {
    featureFlagsWithStrings[FeatureFlagHelper.featureFlags[key]] = value;
  });

  return featureFlagsWithStrings;
}