Response<D> class final

The class represents the response from the server.

Constructors

Response({required Map<String, String> headers, required HttpStatus status, required Request request, required D data})
Returns the new instance of Response.
const

Properties

data → D
The response data.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
The headers from the server.
final
request Request
The request that generated this response.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status HttpStatus
The HTTP status from the server.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns the JSON representation.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited