GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata.fromJson constructor
GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata.fromJson(
- Map _json
Implementation
GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata.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')
? GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata
.fromJson(_json['imageBoundingBoxDetails']
as core.Map<core.String, core.dynamic>)
: null,
imageBoundingPolyDetails: _json
.containsKey('imageBoundingPolyDetails')
? GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata
.fromJson(_json['imageBoundingPolyDetails']
as core.Map<core.String, core.dynamic>)
: null,
imageClassificationDetails: _json
.containsKey('imageClassificationDetails')
? GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata
.fromJson(_json['imageClassificationDetails']
as core.Map<core.String, core.dynamic>)
: null,
imageOrientedBoundingBoxDetails: _json
.containsKey('imageOrientedBoundingBoxDetails')
? GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata
.fromJson(_json['imageOrientedBoundingBoxDetails']
as core.Map<core.String, core.dynamic>)
: null,
imagePolylineDetails: _json.containsKey('imagePolylineDetails')
? GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata
.fromJson(_json['imagePolylineDetails']
as core.Map<core.String, core.dynamic>)
: null,
imageSegmentationDetails: _json
.containsKey('imageSegmentationDetails')
? GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata
.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')
? GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata
.fromJson(_json['textClassificationDetails']
as core.Map<core.String, core.dynamic>)
: null,
textEntityExtractionDetails: _json
.containsKey('textEntityExtractionDetails')
? GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata
.fromJson(_json['textEntityExtractionDetails']
as core.Map<core.String, core.dynamic>)
: null,
videoClassificationDetails: _json
.containsKey('videoClassificationDetails')
? GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata
.fromJson(_json['videoClassificationDetails']
as core.Map<core.String, core.dynamic>)
: null,
videoEventDetails: _json.containsKey('videoEventDetails')
? GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata
.fromJson(_json['videoEventDetails']
as core.Map<core.String, core.dynamic>)
: null,
videoObjectDetectionDetails: _json
.containsKey('videoObjectDetectionDetails')
? GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata
.fromJson(_json['videoObjectDetectionDetails']
as core.Map<core.String, core.dynamic>)
: null,
videoObjectTrackingDetails: _json
.containsKey('videoObjectTrackingDetails')
? GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata
.fromJson(_json['videoObjectTrackingDetails']
as core.Map<core.String, core.dynamic>)
: null,
);