BasicModel class

基础解析数据model

Constructors

BasicModel({dynamic data, dynamic extension, dynamic original, required String code, int? statusCode, required String msg, String? statusMessage, Map<String, List<String>>? headers})
BasicModel.fromJson(Map<String, dynamic>? json, dynamic response)

Properties

code String
后台定义的 code
getter/setter pair
data ↔ dynamic
后台返回数据
getter/setter pair
extension ↔ dynamic
后台返回的扩展数据
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, List<String>>?
getter/setter pair
msg String
后台定义的 msg
getter/setter pair
original ↔ dynamic
网络请求返回的原始数据
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
网络请求返回的 statusCode
getter/setter pair
statusMessage String?
网络请求返回的 statusMessage
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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