DynamiteRawResponse<B, H> class

Raw response that can be efficiently serialized into a json Map.

Inheritance

Constructors

DynamiteRawResponse({required int statusCode, required B body, required H headers, Map<String, Object?>? rawHeaders, Object? rawBody})
Creates a new raw dynamite response.
const

Properties

body → B
The decoded body of the response.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headers → H
The decoded headers of the response.
finalinherited
rawBody Object?
Caches the raw response body for later serialization in toJson.
final
rawHeaders Map<String, Object?>?
Caches the raw headers for later serialization in toJson.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The status code of the response.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Serializes this response into json.
toString() String
A string representation of this object.
override

Operators

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