GoogleCloudDatalabelingV1beta1PrCurve.fromJson constructor
GoogleCloudDatalabelingV1beta1PrCurve.fromJson(
- Map _json
Implementation
GoogleCloudDatalabelingV1beta1PrCurve.fromJson(core.Map _json)
: this(
annotationSpec: _json.containsKey('annotationSpec')
? GoogleCloudDatalabelingV1beta1AnnotationSpec.fromJson(
_json['annotationSpec']
as core.Map<core.String, core.dynamic>)
: null,
areaUnderCurve: _json.containsKey('areaUnderCurve')
? (_json['areaUnderCurve'] as core.num).toDouble()
: null,
confidenceMetricsEntries: _json
.containsKey('confidenceMetricsEntries')
? (_json['confidenceMetricsEntries'] as core.List)
.map<GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry>(
(value) =>
GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
meanAveragePrecision: _json.containsKey('meanAveragePrecision')
? (_json['meanAveragePrecision'] as core.num).toDouble()
: null,
);