SocetResponseModel class

flutter 端发送数据到 idea 插件端的模型类

Available extensions

Constructors

SocetResponseModel.new({required dynamic data, required String methed, required Map<String, dynamic> queryParams, required String url, required int statusCode, required dynamic body, required Map<String, dynamic> headers, required Map<String, dynamic> responseHeaders, required int timestamp})
SocetResponseModel.makeByResponse(Response response, int time)
生成一个socket发送对象模型
factory

Properties

body → dynamic
服务器返回的数据
final
data → dynamic
json类型数据
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
request - 请求头
final
methed String
请求方法
final
queryParams Map<String, dynamic>
查询参数
final
responseHeaders Map<String, dynamic>
response - 返回头
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
服务器状态码
final
timestamp int
请求耗时
final
url String
请求的URL
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(DataFormatVersions version) → void

Available on SocetResponseModel, provided by the SocetResponseModelExt extension

toJson() Map<String, dynamic>
转json
toString() String
A string representation of this object.
inherited

Operators

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