BuiltValueConverter class
A custom Converter
and ErrorConverter
that handles conversion for classes
having a serializer implementation made with the built_value package.
Constructors
- BuiltValueConverter(Serializers serializers, {Type? errorType})
-
Builds a new BuiltValueConverter instance that uses built_value serializers defined
in the provided serializers parameter.
const
Properties
- errorType → Type?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serializers → Serializers
-
final
Methods
-
convertError<
BodyType, InnerType> (Response response) → FutureOr< Response> -
Converts the received
Response
to aResponse
which has a body with the HTTP representation of the original body. -
convertRequest(
Request request) → Request -
Converts the received
Request
to aRequest
which has a body with the HTTP representation of the original body. -
convertResponse<
BodyType, InnerType> (Response response) → FutureOr< Response< BodyType> > -
Converts the received
Response
to aResponse
which has a body of the typeBodyType
. -
deserialize<
BodyType, InnerType> (dynamic entity) → BodyType? -
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
Constants
- jsonConverter → const JsonConverter