transformHttpResponse method

ChatResponse transformHttpResponse(
  1. Response rawResponse
)

Implementation

ChatResponse transformHttpResponse(http.Response rawResponse) {
  ChatResponse response =
      ChatResponse.fromJson(jsonDecode(utf8.decode(rawResponse.bodyBytes)));
  return response;
}