MQTTResponseDataModel<T> class

MQTT 响应数据模型

Constructors

MQTTResponseDataModel({int? code, String? message, T? data})
MQTTResponseDataModel 响应数据模型
MQTTResponseDataModel.fromJson(Map<String, dynamic> json)
从 JSON 构造 MQTTResponseDataModel

Properties

code int?
状态码
getter/setter pair
data ↔ T?
数据
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String?
消息
getter/setter pair
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
toJson() Map<String, dynamic>
转换为 JSON
toString() String
A string representation of this object.
inherited

Operators

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