This commit is contained in:
Hamza-Ayed
2024-07-01 13:39:00 +03:00
parent d9305b771f
commit 94d70237ff
4 changed files with 4 additions and 2 deletions

BIN
assets/images/lady1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
assets/images/moto1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -511,10 +511,11 @@ class AI extends GetxController {
},
body: requestBody,
);
print(response.body);
if (response.statusCode == 200) {
var responseData = jsonDecode(utf8.decode(response.bodyBytes));
// Process the responseData as needed
print(responseData);
if (idType == 'car_back') {
responseIdCardDriverEgyptBack =
jsonDecode(responseData['content'][0]['text']);

View File

@@ -767,7 +767,8 @@ Please fill in the JSON object with the extracted information, following these g
if (ai.responseIdCardDriverEgyptBack.isNotEmpty) {
// Get the tax expiry date from the response
final taxExpiryDate = ai.responseIdCardDriverEgyptBack['tax_expiry'];
// final displacement = ai.responseIdCardDriverEgyptBack['displacement'];
// if (int.parse(displacement) < 1000) {}
// Get the inspection date from the response
final inspectionDate =
ai.responseIdCardDriverEgyptBack['inspection_date'];