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