in libraries/azure-app-configuration-importer/src/internal/parsers/defaultConfigurationSettingsConverter.ts [429:444]
private getDotnetFmSchemaFeatureFlags(config: object): { [key: string]: any } {
const msFeatureManagementKeyWord = Constants.FeatureManagementKeyWords[3];
const featureManagementSection: object = config[this.dotnetFmSchemaKeyWord as keyof object];
if (typeof featureManagementSection !== "object") {
throw new ArgumentError(`The ${this.dotnetFmSchemaKeyWord} section must be an object.`);
}
if (this.dotnetFmSchemaKeyWord === msFeatureManagementKeyWord) { //dotnet schema might be nested within msFmSchema
const { feature_flags, ...dotnetSchemaFeatureFlags } = featureManagementSection as { [key: string]: any };
return dotnetSchemaFeatureFlags;
}
else {
return featureManagementSection;
}
}