BaseResponse<T> class

Constructors

BaseResponse({T? code, T? data, String? msg, String? error, String? status, T? result})
BaseResponse.fromJson(Map<String, dynamic> json, T fromJsonT(dynamic json))
factory

Properties

code → T?
final
data → T?
数据
final
error → String?
错误信息
final
hashCode → int
The hash code for this object.
no setterinherited
msg → String?
提示信息
final
result → T?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → String?
final

Methods

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

Operators

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