CaptureAllFromCameraResponse constructor

CaptureAllFromCameraResponse({
  1. Image? image,
  2. Iterable<Detection>? detections,
  3. Iterable<Classification>? classifications,
  4. Iterable<PointCloudObject>? objects,
  5. Struct? extra,
})

Implementation

factory CaptureAllFromCameraResponse({
  $19.Image? image,
  $core.Iterable<Detection>? detections,
  $core.Iterable<Classification>? classifications,
  $core.Iterable<$14.PointCloudObject>? objects,
  $43.Struct? extra,
}) {
  final $result = create();
  if (image != null) {
    $result.image = image;
  }
  if (detections != null) {
    $result.detections.addAll(detections);
  }
  if (classifications != null) {
    $result.classifications.addAll(classifications);
  }
  if (objects != null) {
    $result.objects.addAll(objects);
  }
  if (extra != null) {
    $result.extra = extra;
  }
  return $result;
}