CameraAPI.callEngineV2 constructor
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,
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",
},
);