GoogleCloudDatalabelingV1alpha1LabelOperationMetadata.fromJson constructor

GoogleCloudDatalabelingV1alpha1LabelOperationMetadata.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1alpha1LabelOperationMetadata.fromJson(core.Map _json)
    : this(
        annotatedDataset: _json.containsKey('annotatedDataset')
            ? _json['annotatedDataset'] as core.String
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        dataset: _json.containsKey('dataset')
            ? _json['dataset'] as core.String
            : null,
        imageBoundingBoxDetails: _json.containsKey('imageBoundingBoxDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata
                .fromJson(_json['imageBoundingBoxDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        imageBoundingPolyDetails: _json
                .containsKey('imageBoundingPolyDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata
                .fromJson(_json['imageBoundingPolyDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        imageClassificationDetails: _json
                .containsKey('imageClassificationDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata
                .fromJson(_json['imageClassificationDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        imageOrientedBoundingBoxDetails: _json
                .containsKey('imageOrientedBoundingBoxDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata
                .fromJson(_json['imageOrientedBoundingBoxDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        imagePolylineDetails: _json.containsKey('imagePolylineDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata
                .fromJson(_json['imagePolylineDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        imageSegmentationDetails: _json
                .containsKey('imageSegmentationDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata
                .fromJson(_json['imageSegmentationDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        partialFailures: _json.containsKey('partialFailures')
            ? (_json['partialFailures'] as core.List)
                .map((value) => GoogleRpcStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        progressPercent: _json.containsKey('progressPercent')
            ? _json['progressPercent'] as core.int
            : null,
        textClassificationDetails: _json
                .containsKey('textClassificationDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata
                .fromJson(_json['textClassificationDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        textEntityExtractionDetails: _json
                .containsKey('textEntityExtractionDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata
                .fromJson(_json['textEntityExtractionDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        videoClassificationDetails: _json
                .containsKey('videoClassificationDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata
                .fromJson(_json['videoClassificationDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        videoEventDetails: _json.containsKey('videoEventDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata
                .fromJson(_json['videoEventDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        videoObjectDetectionDetails: _json
                .containsKey('videoObjectDetectionDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata
                .fromJson(_json['videoObjectDetectionDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        videoObjectTrackingDetails: _json
                .containsKey('videoObjectTrackingDetails')
            ? GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata
                .fromJson(_json['videoObjectTrackingDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );