GoogleCloudDatalabelingV1beta1ImageClassificationConfig.fromMap constructor
GoogleCloudDatalabelingV1beta1ImageClassificationConfig.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GoogleCloudDatalabelingV1beta1ImageClassificationConfig.fromMap(Map<String, dynamic> map) {
return GoogleCloudDatalabelingV1beta1ImageClassificationConfig(
allowMultiLabel: (() { final guardedValue = map['allowMultiLabel']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
annotationSpecSet: pulumi.Input.fromValue(map['annotationSpecSet'] as String),
answerAggregationType: (() { final guardedValue = map['answerAggregationType']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDatalabelingV1beta1ImageClassificationConfigAnswerAggregationType.fromValue(guardedValue as String)); })(),
);
}