DeekWebResponse<RequestType extends DeekWebRequest, ResponseType>.fromResponse constructor

DeekWebResponse<RequestType extends DeekWebRequest, ResponseType>.fromResponse({
  1. required DeekWebRequest<ResponseType> request,
  2. required ResponseType? data,
  3. required int? statusCode,
  4. required int latencyMs,
})

Creates a DeekWebResponse from a response from the server.

Implementation

DeekWebResponse.fromResponse(
    {required this.request,
    required this.data,
    required this.statusCode,
    required this.latencyMs})
    : exception = null;