JsonToTypeConverter class

Constructors

JsonToTypeConverter({required Map<Type, JsonConvertorFunction> jsonConvertorMap})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
jsonConvertorMap Map<Type, JsonConvertorFunction>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convertError<BodyType, InnerType>(Response response) FutureOr<Response>
Converts the received Response to a Response which has a body with the HTTP representation of the original body.
convertRequest(Request request) → Request
Converts the received Request to a Request which has a body with the HTTP representation of the original body.
inherited
convertResponse<BodyType, InnerType>(Response response) → Response<BodyType>
Converts the received Response to a Response which has a body of the type BodyType.
decode<BodyType, InnerType>(dynamic entity) → dynamic
decodeJson<BodyType, InnerType>(Response response) FutureOr<Response>
inherited
encodeJson(Request request) → Request
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
tryDecodeJson(String data) FutureOr
inherited

Operators

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