toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (annotatedDataset != null) 'annotatedDataset': annotatedDataset!,
      if (createTime != null) 'createTime': createTime!,
      if (dataset != null) 'dataset': dataset!,
      if (imageBoundingBoxDetails != null)
        'imageBoundingBoxDetails': imageBoundingBoxDetails!.toJson(),
      if (imageBoundingPolyDetails != null)
        'imageBoundingPolyDetails': imageBoundingPolyDetails!.toJson(),
      if (imageClassificationDetails != null)
        'imageClassificationDetails': imageClassificationDetails!.toJson(),
      if (imageOrientedBoundingBoxDetails != null)
        'imageOrientedBoundingBoxDetails':
            imageOrientedBoundingBoxDetails!.toJson(),
      if (imagePolylineDetails != null)
        'imagePolylineDetails': imagePolylineDetails!.toJson(),
      if (imageSegmentationDetails != null)
        'imageSegmentationDetails': imageSegmentationDetails!.toJson(),
      if (partialFailures != null)
        'partialFailures':
            partialFailures!.map((value) => value.toJson()).toList(),
      if (progressPercent != null) 'progressPercent': progressPercent!,
      if (textClassificationDetails != null)
        'textClassificationDetails': textClassificationDetails!.toJson(),
      if (textEntityExtractionDetails != null)
        'textEntityExtractionDetails': textEntityExtractionDetails!.toJson(),
      if (videoClassificationDetails != null)
        'videoClassificationDetails': videoClassificationDetails!.toJson(),
      if (videoEventDetails != null)
        'videoEventDetails': videoEventDetails!.toJson(),
      if (videoObjectDetectionDetails != null)
        'videoObjectDetectionDetails': videoObjectDetectionDetails!.toJson(),
      if (videoObjectTrackingDetails != null)
        'videoObjectTrackingDetails': videoObjectTrackingDetails!.toJson(),
    };