GoogleCloudDatalabelingV1beta1LabelTextRequest.fromJson constructor

GoogleCloudDatalabelingV1beta1LabelTextRequest.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1LabelTextRequest.fromJson(core.Map _json)
    : this(
        basicConfig: _json.containsKey('basicConfig')
            ? GoogleCloudDatalabelingV1beta1HumanAnnotationConfig.fromJson(
                _json['basicConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        feature: _json.containsKey('feature')
            ? _json['feature'] as core.String
            : null,
        textClassificationConfig: _json
                .containsKey('textClassificationConfig')
            ? GoogleCloudDatalabelingV1beta1TextClassificationConfig.fromJson(
                _json['textClassificationConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        textEntityExtractionConfig:
            _json.containsKey('textEntityExtractionConfig')
                ? GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig
                    .fromJson(_json['textEntityExtractionConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );