LogError class

异常日志

Constructors

LogError({dynamic id, dynamic bsid, int? time, DbJsonWraper? extra, List? trans, dynamic uid, int? clientVersion, String? deviceType, String? deviceVersion, DbJsonWraper? deviceDetail, DbJsonWraper? errorDetail, int? errorTime, bool? finished})
LogError.fromJson(Map<String, dynamic> map)
factory
LogError.fromString(String data)
factory

Properties

bsid → dynamic
商户id
no setter
clientVersion int
客户端版本号
getter/setter pair
deviceDetail DbJsonWraper
设备详细信息
getter/setter pair
deviceType String
设备系统类型
getter/setter pair
deviceVersion String
设备系统版本
getter/setter pair
errorDetail DbJsonWraper
异常详细信息
getter/setter pair
errorTime int
异常产生时间
getter/setter pair
extra DbJsonWraper
自定义数据
no setter
finished bool
异常是否解决
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id → dynamic
唯一id
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time int
创建时间
no setter
trans List
未完成的事务列表
no setter
uid ↔ dynamic
所属用户id
getter/setter pair

Methods

buildTarget() → dynamic
使用本实例字段成员的值生成包装的目标类实例
inherited
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, {LogError? parser}) → void
通过基本数据类型的Map来更新字段。来源map可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库
updateByKValues(Map<String, dynamic> map) → void
通过用字符串key读取字段值的Map来更新字段

Operators

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