ResultFieldParser<T> class

结果字段解析器 - 从响应的 result 字段中提取数据 适用于格式: { "success": true, "result": {...}, "error": null }

Implemented types

Constructors

ResultFieldParser({String fieldName = NetworkConstants.fieldResult, bool validateSuccess = true})

Properties

fieldName String
结果字段名,默认为 'result'
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validateSuccess bool
是否验证成功标志,默认为 true
final

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