toFeatureFlagDecision method

FeatureFlagDecision toFeatureFlagDecision()

Implementation

FeatureFlagDecision toFeatureFlagDecision() {
  return FeatureFlagDecision._(
      reason: EnumUtil.parseToEnum<DecisionReason>(
        DecisionReason.values,
        this["reason"].toString(),
      ),
      isOn: this["isOn"],
      config: this["config"] != null
          ? ParameterConfigImpl.fromMap(this["config"])
          : EmptyParameterConfig());
}