initChat method

ApiRequest<ChatSession, ChatSession> initChat(
  1. InitChatDto body
)

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