GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata.fromJson constructor

GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata.fromJson(
    core.Map _json)
    : this(
        boundingPolyConfig: _json.containsKey('boundingPolyConfig')
            ? GoogleCloudDatalabelingV1beta1BoundingPolyConfig.fromJson(
                _json['boundingPolyConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        eventConfig: _json.containsKey('eventConfig')
            ? GoogleCloudDatalabelingV1beta1EventConfig.fromJson(
                _json['eventConfig'] as core.Map<core.String, core.dynamic>)
            : 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,
        objectDetectionConfig: _json.containsKey('objectDetectionConfig')
            ? GoogleCloudDatalabelingV1beta1ObjectDetectionConfig.fromJson(
                _json['objectDetectionConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        objectTrackingConfig: _json.containsKey('objectTrackingConfig')
            ? GoogleCloudDatalabelingV1beta1ObjectTrackingConfig.fromJson(
                _json['objectTrackingConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        polylineConfig: _json.containsKey('polylineConfig')
            ? GoogleCloudDatalabelingV1beta1PolylineConfig.fromJson(
                _json['polylineConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        segmentationConfig: _json.containsKey('segmentationConfig')
            ? GoogleCloudDatalabelingV1beta1SegmentationConfig.fromJson(
                _json['segmentationConfig']
                    as core.Map<core.String, core.dynamic>)
            : 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,
        videoClassificationConfig:
            _json.containsKey('videoClassificationConfig')
                ? GoogleCloudDatalabelingV1beta1VideoClassificationConfig
                    .fromJson(_json['videoClassificationConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );