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