getExperimentProperties method
Map<String, dynamic>
getExperimentProperties(
)
Implementation
Map<String, dynamic> getExperimentProperties() {
final properties = <String, dynamic>{};
final activeExperiments = _experimentData.keys.toList();
properties[PerceptExperiment.activeExperiments.asString('')] =
activeExperiments;
for (String experimentName in activeExperiments) {
final variant = _experimentData[experimentName]?.variantName;
properties[PerceptExperiment.experimentVariant.asString(experimentName)] =
variant;
}
return properties;
}