GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics.fromJson constructor
GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics.fromJson(
- Map json_
Implementation
GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics.fromJson(
core.Map json_)
: this(
auprc: json_.containsKey('auprc')
? (json_['auprc'] as core.num).toDouble()
: null,
auprcExact: json_.containsKey('auprcExact')
? (json_['auprcExact'] as core.num).toDouble()
: null,
confidenceLevelMetrics: json_.containsKey('confidenceLevelMetrics')
? (json_['confidenceLevelMetrics'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
confidenceLevelMetricsExact: json_
.containsKey('confidenceLevelMetricsExact')
? (json_['confidenceLevelMetricsExact'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
estimatedCalibrationError:
json_.containsKey('estimatedCalibrationError')
? (json_['estimatedCalibrationError'] as core.num).toDouble()
: null,
estimatedCalibrationErrorExact: json_
.containsKey('estimatedCalibrationErrorExact')
? (json_['estimatedCalibrationErrorExact'] as core.num).toDouble()
: null,
metricsType: json_.containsKey('metricsType')
? json_['metricsType'] as core.String
: null,
);