toDecision method

Decision toDecision()

Implementation

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