sendImage method

ApiRequest<List<String>, String> sendImage(
  1. SendImageDto body,
  2. String businessId
)

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),
      ]);
}