DeekWebResponse<RequestType extends DeekWebRequest, ResponseType>.fromResponse constructor
DeekWebResponse<RequestType extends DeekWebRequest, ResponseType>.fromResponse ({
- required DeekWebRequest<
ResponseType> request, - required ResponseType? data,
- required int? statusCode,
- 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;