CameraAPI.callEngineV2 constructor

CameraAPI.callEngineV2({
  1. required String claimId,
  2. required String imageName,
  3. required String filePath,
  4. required String position,
  5. required String direction,
  6. required String vehiclePartExcelId,
  7. required bool isCapDon,
  8. String? resizePath,
  9. int? oldImageId,
  10. double? timeAppUpload,
  11. String? locationName,
  12. String? uploadLocation,
  13. String? utcTimeCreated,
  14. bool? isTruck,
})

Implementation

CameraAPI.callEngineV2({
  required String claimId,
  required String imageName,
  required String filePath,
  required String position,
  required String direction,
  required String vehiclePartExcelId,
  required bool isCapDon,
  String? resizePath,
  int? oldImageId,
  double? timeAppUpload,
  String? locationName,
  String? uploadLocation,
  String? utcTimeCreated,
  bool? isTruck,
}) : super(
        endpoint: Endpoint.callEngine,
        method: HTTPMethod.post,
        isLogResponse: true,
        isBaseResponse: false,
        body: {
          "claimId": claimId,
          "imageName": imageName,
          "filePath": filePath,
          "position": position,
          "direction": direction,
          "vehiclePartExcelId": vehiclePartExcelId,
          "oldImageId": oldImageId,
          "timeAppUpload": timeAppUpload,
          "resizePath": resizePath,
          "location": locationName,
          "requestedTime": utcTimeCreated,
          "uploadLocation": uploadLocation,
          "isValidate": true,
          /// Updated at Oct 5th, 2025 for PVI
          if (isTruck == true) "vehicleType": "car",
        },
      );