sendChat method

ApiRequest<SendChatModel, SendChatModel> sendChat(
  1. SendChatDto body
)

Implementation

ApiRequest<SendChatModel, SendChatModel> sendChat(SendChatDto body) {
  return ApiRequest<SendChatModel, SendChatModel>(
      baseUrl: baseUrl,
      path: ApiUrls.sendChat,
      method: ApiMethods.post,
      dataKey: '',
      body: body.toJson(),
      error: ErrorDescription(),
      interceptors: [
        HeaderInterceptor({
          "Content-Type": "application/json",
          "Accept": "application/json",
        }),
        JsonInterceptor<EnifError>(Models.factories),
      ]);
}