CustomX class

自定义数据

Constructors

CustomX({ObjectId? id, ObjectId? bsid, int? time, DbJsonWraper? extra, ObjectId? uid, int? int1, int? int2, int? int3, String? str1, String? str2, String? str3, ObjectId? rid1, ObjectId? rid2, ObjectId? rid3, int? hot1, int? hot2, int? hotx, DbJsonWraper? body, int? update, double? score, int? mark})
CustomX.fromJson(Map<String, dynamic> map)
factory
CustomX.fromString(String data)
factory

Properties

body DbJsonWraper
数据内容
getter/setter pair
bsid ObjectId
商户id
no setter
cusmark ↔ Cusmark?
消息发送者展示的头像
getter/setter pair
extra DbJsonWraper
自定义数据
no setter
hashCode int
The hash code for this object.
no setterinherited
hot1 int
整数增减量1(增减单位为1)
getter/setter pair
hot2 int
整数增减量2(增减单位为1)
getter/setter pair
hotx int
整数增减量x(增减单位为x)
getter/setter pair
id ObjectId
唯一id
no setter
int1 int
整数索引1
getter/setter pair
int2 int
整数索引2
getter/setter pair
int3 int
整数索引3
getter/setter pair
mark int
总标记数(每个用户标记一次)
getter/setter pair
rid1 ObjectId
关联标志索引1
getter/setter pair
rid2 ObjectId
关联标志索引2
getter/setter pair
rid3 ObjectId
关联标志索引3
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
平局得分(每个用户打分一次)
getter/setter pair
str1 String
字符串索引1
getter/setter pair
str2 String
字符串索引2
getter/setter pair
str3 String
字符串索引3
getter/setter pair
time int
创建时间
no setter
uid ObjectId
创建者标志
getter/setter pair
update int
最近更新时间
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
转换为基本数据类型的Map。转换结果可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库
toKValues() Map<String, dynamic>
转换为用字符串key读取字段值的Map
toString() String
jsonEncode(this)抛出的异常被吃掉了,所以需要写成jsonEncode(toJson())
updateByJson(Map<String, dynamic> map, {CustomX? parser}) → void
通过基本数据类型的Map来更新字段。来源map可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库
updateByKValues(Map<String, dynamic> map) → void
通过用字符串key读取字段值的Map来更新字段

Operators

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