uploadID static method
Implementation
static Future<Response> uploadID(Uint8List image, Uint8List image2) async {
final response = await ApiClient.connect(
ApiMethod.post,
ApiString.uploadCMND,
data: FormData.fromMap(
{
'image1': MultipartFile.fromBytes(image, filename: 'image1.png'),
'image2': MultipartFile.fromBytes(image2, filename: 'image2.png'),
'encode': 1,
},
),
);
return response;
}