ConstBuild a flattened map of flag keys to values from a change list.
Optionalchanges: {The change list returned by the optimization service.
Key identifying the subject of the change.
Metadata describing the originating experience and variant index.
Identifier of the personalization or experiment experience.
Index of the variant within the experience configuration.
Discriminator for a variable change.
New value for the variable identified by ChangeBase.key.
A map of flag keys to their resolved values.
Given an Optimization ChangeArray, this utility flattens the list into a
simple key–value object suitable for quick lookups in client code. When changes
is undefined, an empty object is returned. If a change value is wrapped in an
object like { value: { ... } }, this resolver unwraps it to the underlying object.
Resolves a Flags map from a list of optimization changes.