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. String? resizePath,
  8. String? oldImageId,
  9. double? timeAppUpload,
  10. String? locationName,
  11. String? uploadLocation,
  12. String? utcTimeCreated,
  13. bool? isTruck,
})

Implementation

CameraAPI.callEngineV2({
  required String claimId,
  required String imageName,
  required String filePath,
  required String position,
  required String direction,
  required String vehiclePartExcelId,
  String? resizePath,
  String? oldImageId,
  double? timeAppUpload,
  String? locationName,
  String? uploadLocation,
  String? utcTimeCreated,
  bool? isTruck,
}) : super(
       endpoint: Endpoint.callClaimMeEngine,
       method: HTTPMethod.post,
       isLogResponse: true,
       isBaseResponse: false,
       body: {
         "claimId": claimId,
         "imageName": imageName,
         "filePath": filePath,
         "position": position,
         "direction": direction,
         "vehiclePartExcelId": vehiclePartExcelId,
         if (oldImageId != null) "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",
       },
     );