GoogleCloudDatalabelingV1beta1TextClassificationConfig.fromMap constructor

GoogleCloudDatalabelingV1beta1TextClassificationConfig.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GoogleCloudDatalabelingV1beta1TextClassificationConfig.fromMap(Map<String, dynamic> map) {
  return GoogleCloudDatalabelingV1beta1TextClassificationConfig(
    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),
    sentimentConfig: (() { final guardedValue = map['sentimentConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDatalabelingV1beta1SentimentConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}