Parser<T> class
abstract
Extend this class to create your own Parser.
Parser is used by HttpWorker to parse the response of a request.
parse function converts the body of the response into desired data class. It can throw an Exception if the response body is not in the desired format. This exception will be caught by HttpWorker and the Response will update its Response.error value.
Constructors
- Parser()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
Object data) → T -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited