GoogleCloudDatalabelingV1beta1EvaluationJobConfig.fromJson constructor
GoogleCloudDatalabelingV1beta1EvaluationJobConfig.fromJson(
- Map _json
Implementation
GoogleCloudDatalabelingV1beta1EvaluationJobConfig.fromJson(core.Map _json)
: this(
bigqueryImportKeys: _json.containsKey('bigqueryImportKeys')
? (_json['bigqueryImportKeys']
as core.Map<core.String, core.dynamic>)
.map(
(key, item) => core.MapEntry(
key,
item as core.String,
),
)
: null,
boundingPolyConfig: _json.containsKey('boundingPolyConfig')
? GoogleCloudDatalabelingV1beta1BoundingPolyConfig.fromJson(
_json['boundingPolyConfig']
as core.Map<core.String, core.dynamic>)
: null,
evaluationConfig: _json.containsKey('evaluationConfig')
? GoogleCloudDatalabelingV1beta1EvaluationConfig.fromJson(
_json['evaluationConfig']
as core.Map<core.String, core.dynamic>)
: null,
evaluationJobAlertConfig: _json
.containsKey('evaluationJobAlertConfig')
? GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig.fromJson(
_json['evaluationJobAlertConfig']
as core.Map<core.String, core.dynamic>)
: null,
exampleCount: _json.containsKey('exampleCount')
? _json['exampleCount'] as core.int
: null,
exampleSamplePercentage: _json.containsKey('exampleSamplePercentage')
? (_json['exampleSamplePercentage'] as core.num).toDouble()
: null,
humanAnnotationConfig: _json.containsKey('humanAnnotationConfig')
? GoogleCloudDatalabelingV1beta1HumanAnnotationConfig.fromJson(
_json['humanAnnotationConfig']
as core.Map<core.String, core.dynamic>)
: null,
imageClassificationConfig:
_json.containsKey('imageClassificationConfig')
? GoogleCloudDatalabelingV1beta1ImageClassificationConfig
.fromJson(_json['imageClassificationConfig']
as core.Map<core.String, core.dynamic>)
: null,
inputConfig: _json.containsKey('inputConfig')
? GoogleCloudDatalabelingV1beta1InputConfig.fromJson(
_json['inputConfig'] as core.Map<core.String, core.dynamic>)
: null,
textClassificationConfig: _json
.containsKey('textClassificationConfig')
? GoogleCloudDatalabelingV1beta1TextClassificationConfig.fromJson(
_json['textClassificationConfig']
as core.Map<core.String, core.dynamic>)
: null,
);