DynamiteRawResponse<B, H> class

Raw response returned by operations of a DynamiteClient.

This type itself is serializable.

The api of this type might change without a major bump. Use methods that return a DynamiteResponse instead.

See:

  • DynamiteResponse as the response returned by an operation.
  • DynamiteApiException as the exception that can be thrown in operations
  • DynamiteAuthentication for providing authentication methods.
  • DynamiteClient for the client providing operations.
Annotations
  • @experimental

Constructors

DynamiteRawResponse.new({required Future<StreamedResponse> response, required FullType? bodyType, required FullType? headersType, required Serializers serializers})
Creates a new raw dynamite response.
DynamiteRawResponse.fromJson(Map<String, Object?> json, {required Serializers serializers, FullType? bodyType, FullType? headersType})
Decodes a raw dynamite response from json data.
factory

Properties

bodyType → FullType?
The full type of the body.
final
future Future<DynamiteResponse<B, H>>
Future of the deserialized response.
latefinal
hashCode int
The hash code for this object.
no setterinherited
headersType → FullType?
The full type of the headers.
final
rawHeaders Map<String, Object?>?
Caches the serialized response headers for later serialization in toJson.
no setter
response DynamiteResponse<B, H>
Returns the deserialized response synchronously.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializers → Serializers
The serializers for the header and body.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serializeBody(B? object) Object?
Serializes the body.
serializeHeaders(H? object) Object?
Serializes the headers.
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

Static Methods

deserializeBody<B>(Object? serialized, Serializers serializers, FullType? bodyType) → B?
Deserializes the body.
deserializeHeaders<H>(Object? serialized, Serializers serializers, FullType? headersType) → H?
Deserializes the headers.