uploadID static method

Future<Response> uploadID(
  1. Uint8List image,
  2. Uint8List image2
)

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: 'front.png'),
        'image2': MultipartFile.fromBytes(image2, filename: 'backside.png'),
        'encode': 1,
      },
    ),
  );
  return response;
}