GraphQLResponse<T>.fromResponse constructor

GraphQLResponse<T>.fromResponse(
  1. Response res
)

Implementation

GraphQLResponse.fromResponse(Response res)
    : graphQLErrors = null,
      super(
          request: res.request,
          statusCode: res.statusCode,
          bodyBytes: res.bodyBytes,
          bodyString: res.bodyString,
          statusText: res.statusText,
          headers: res.headers,
          body: res.body['data'] as T?);