DirectParser<T> class
直接解析器 - 直接返回原始数据(不进行任何解析)
这是默认的解析器,不对数据进行任何处理,直接返回原始响应数据 适用于:
- 不需要数据解析的场景
- 使用 ResponseInterceptor 自动解析的场景
- 响应数据格式不固定的场景
- Implemented types
-
- DataParser<
T>
- DataParser<
Constructors
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(
dynamic rawData) → T -
解析数据
rawData原始响应数据 返回解析后的目标数据override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited