DynamiteSerializer<B, H> class final

The serializer to convert the raw headers and body from a http.BaseResponse.

The generics B and H must match the type returned after deserializing to bodyType and headersType respectively.

Annotations
  • @immutable

Constructors

DynamiteSerializer({required FullType? bodyType, required FullType? headersType, required Serializers serializers, Set<int>? validStatuses})
Creates a new dynamite serializer.
const

Properties

bodyType → FullType?
The full type of the body.
final
hashCode int
The hash code for this object.
no setterinherited
headersType → FullType?
The full type of the headers.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializers → Serializers
The serializers for the header and body.
final
validStatuses Set<int>?
The expected valid statuses of this request.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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