ResponseModel class

Constructors

ResponseModel({required int statusCode, String? message, dynamic result, bool? isCache, bool? isSameToBefore, required ResponseDateModel dateModel})

Properties

apiLogLevel ApiLogLevel
no setter
customGetApiLogLevelBlock ApiLogLevel Function(ResponseModel responseModel)?
getter/setter pair
dateModel ResponseDateModel
final
dateModels List<ResponseDateModel>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isCache bool?
getter/setter pair
isErrorResponse bool
no setter
isSameToBefore bool?
getter/setter pair
isSuccess bool
no setter
message String?
getter/setter pair
result ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
getter/setter pair

Methods

isEqualToResponse(ResponseModel cacheResponseModel) bool
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.
override

Operators

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

Static Methods

nonetworkResponseModel({required DateTime requestTime, required DateTime errorTime}) ResponseModel
获取错误时候的 responseModel
tryCatchErrorResponseModel(String message, {bool? isCache, required DateTime requestTime, required DateTime errorTime}) ResponseModel