XRPCResponse<D> class
final
The class represents the response from ATP server.
Constructors
-
XRPCResponse({required Map<
String, String> headers, required HttpStatus status, required XRPCRequest request, required RateLimit rateLimit, required D data}) -
Returns the new instance of XRPCResponse.
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 ATP server.
final
- rateLimit → RateLimit
-
The rate limit.
final
- request → XRPCRequest
-
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 ATP 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