GoogleCloudDatalabelingV1beta1TextClassificationConfig.fromJson constructor

GoogleCloudDatalabelingV1beta1TextClassificationConfig.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1TextClassificationConfig.fromJson(
    core.Map _json)
    : this(
        allowMultiLabel: _json.containsKey('allowMultiLabel')
            ? _json['allowMultiLabel'] as core.bool
            : null,
        annotationSpecSet: _json.containsKey('annotationSpecSet')
            ? _json['annotationSpecSet'] as core.String
            : null,
        sentimentConfig: _json.containsKey('sentimentConfig')
            ? GoogleCloudDatalabelingV1beta1SentimentConfig.fromJson(
                _json['sentimentConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );