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,
      );