7/1/3
This commit is contained in:
BIN
assets/images/lady1.png
Normal file
BIN
assets/images/lady1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
BIN
assets/images/moto1.png
Normal file
BIN
assets/images/moto1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
@@ -511,10 +511,11 @@ class AI extends GetxController {
|
|||||||
},
|
},
|
||||||
body: requestBody,
|
body: requestBody,
|
||||||
);
|
);
|
||||||
print(response.body);
|
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
var responseData = jsonDecode(utf8.decode(response.bodyBytes));
|
var responseData = jsonDecode(utf8.decode(response.bodyBytes));
|
||||||
// Process the responseData as needed
|
// Process the responseData as needed
|
||||||
|
print(responseData);
|
||||||
if (idType == 'car_back') {
|
if (idType == 'car_back') {
|
||||||
responseIdCardDriverEgyptBack =
|
responseIdCardDriverEgyptBack =
|
||||||
jsonDecode(responseData['content'][0]['text']);
|
jsonDecode(responseData['content'][0]['text']);
|
||||||
|
|||||||
@@ -767,7 +767,8 @@ Please fill in the JSON object with the extracted information, following these g
|
|||||||
if (ai.responseIdCardDriverEgyptBack.isNotEmpty) {
|
if (ai.responseIdCardDriverEgyptBack.isNotEmpty) {
|
||||||
// Get the tax expiry date from the response
|
// Get the tax expiry date from the response
|
||||||
final taxExpiryDate = ai.responseIdCardDriverEgyptBack['tax_expiry'];
|
final taxExpiryDate = ai.responseIdCardDriverEgyptBack['tax_expiry'];
|
||||||
|
// final displacement = ai.responseIdCardDriverEgyptBack['displacement'];
|
||||||
|
// if (int.parse(displacement) < 1000) {}
|
||||||
// Get the inspection date from the response
|
// Get the inspection date from the response
|
||||||
final inspectionDate =
|
final inspectionDate =
|
||||||
ai.responseIdCardDriverEgyptBack['inspection_date'];
|
ai.responseIdCardDriverEgyptBack['inspection_date'];
|
||||||
|
|||||||
Reference in New Issue
Block a user