Response<D> constructor

const Response<D>({
  1. required Map<String, String> headers,
  2. required HttpStatus status,
  3. required Request request,
  4. required D data,
})

Returns the new instance of Response.

Implementation

const Response({
  required this.headers,
  required this.status,
  required this.request,
  required this.data,
});