Converter class

Converter is is used to convert body of Request or Response convertRequest is call before RequestInterceptor and convertResponse just after the http response, before ResponseInterceptor.

See JsonConverter, FormUrlEncodedConverter

Implementers
Annotations

Constructors

Converter()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

convertRequest(Request request) FutureOr<Request>
convertResponse<BodyType, InnerType>(Response response) FutureOr<Response<BodyType>>
BodyType is the expected type of your response ex: String or CustomObject [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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