EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.fromJson constructor

EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.fromJson(
  1. Map json_
)

Implementation

EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.fromJson(
  core.Map json_,
) : this(
      expectationLevelMetricsThresholds:
          json_.containsKey('expectationLevelMetricsThresholds')
          ? EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.fromJson(
              json_['expectationLevelMetricsThresholds']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      toolMatchingSettings: json_.containsKey('toolMatchingSettings')
          ? EvaluationMetricsThresholdsToolMatchingSettings.fromJson(
              json_['toolMatchingSettings']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      turnLevelMetricsThresholds:
          json_.containsKey('turnLevelMetricsThresholds')
          ? EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.fromJson(
              json_['turnLevelMetricsThresholds']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
    );