GoogleCloudDatalabelingV1beta1AnnotationValue.fromJson constructor

GoogleCloudDatalabelingV1beta1AnnotationValue.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1AnnotationValue.fromJson(core.Map _json)
    : this(
        imageBoundingPolyAnnotation:
            _json.containsKey('imageBoundingPolyAnnotation')
                ? GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation
                    .fromJson(_json['imageBoundingPolyAnnotation']
                        as core.Map<core.String, core.dynamic>)
                : null,
        imageClassificationAnnotation:
            _json.containsKey('imageClassificationAnnotation')
                ? GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation
                    .fromJson(_json['imageClassificationAnnotation']
                        as core.Map<core.String, core.dynamic>)
                : null,
        imagePolylineAnnotation: _json.containsKey('imagePolylineAnnotation')
            ? GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation.fromJson(
                _json['imagePolylineAnnotation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        imageSegmentationAnnotation:
            _json.containsKey('imageSegmentationAnnotation')
                ? GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
                    .fromJson(_json['imageSegmentationAnnotation']
                        as core.Map<core.String, core.dynamic>)
                : null,
        textClassificationAnnotation:
            _json.containsKey('textClassificationAnnotation')
                ? GoogleCloudDatalabelingV1beta1TextClassificationAnnotation
                    .fromJson(_json['textClassificationAnnotation']
                        as core.Map<core.String, core.dynamic>)
                : null,
        textEntityExtractionAnnotation:
            _json.containsKey('textEntityExtractionAnnotation')
                ? GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation
                    .fromJson(_json['textEntityExtractionAnnotation']
                        as core.Map<core.String, core.dynamic>)
                : null,
        videoClassificationAnnotation:
            _json.containsKey('videoClassificationAnnotation')
                ? GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation
                    .fromJson(_json['videoClassificationAnnotation']
                        as core.Map<core.String, core.dynamic>)
                : null,
        videoEventAnnotation: _json.containsKey('videoEventAnnotation')
            ? GoogleCloudDatalabelingV1beta1VideoEventAnnotation.fromJson(
                _json['videoEventAnnotation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        videoObjectTrackingAnnotation:
            _json.containsKey('videoObjectTrackingAnnotation')
                ? GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation
                    .fromJson(_json['videoObjectTrackingAnnotation']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );