sendImage method
Implementation
ApiRequest<List<String>, String> sendImage(
SendImageDto body, String businessId) {
return ApiRequest<List<String>, String>(
baseUrl: baseUrl,
path: ApiUrls.sendImage(businessId),
method: ApiMethods.post,
dataKey: 'data',
body: body.toJson(),
// isMultipart: true,
error: ErrorDescription(),
interceptors: [
HeaderInterceptor({
"Content-Type": "application/json",
"Accept": "application/json",
}),
JsonInterceptor<EnifError>(Models.factories),
]);
}