JsonInterceptor<ErrorType extends ApiError> class
Methods
-
convertFromJson<ResultType, Item>(dynamic data, [String? key])
→ ResultType?
-
convert a json string to a builtvalue with type
ResultType
-
convertToJson<T>(dynamic data)
→ dynamic
-
convert a value to a json encoded string
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onError<ResponseType, InnerType>(ApiResponse<ResponseType, InnerType> response)
→ ApiResponse<ResponseType, InnerType>
-
Intercepts the error and returns the modified error
override
-
onRequest<ResponseType, InnerType>(ApiRequest<ResponseType, InnerType> request)
→ ApiRequest<ResponseType, InnerType>
-
Intercepts the request and returns the modified request
override
-
onResponse<ResponseType, InnerType>(ApiResponse<ResponseType, InnerType> response)
→ ApiResponse<ResponseType, InnerType>
-
Intercepts the response and returns the modified response
override
-
toString()
→ String
-
A string representation of this object.
inherited