LogReport constructor
LogReport({})
Implementation
LogReport({
ObjectId? id,
ObjectId? bsid,
int? time,
DbJsonWraper? extra,
List<ObjectId>? trans,
ObjectId? uid,
int? type,
int? state,
String? image,
ObjectId? relation,
String? host,
String? href,
int? customXNo,
ObjectId? customXId,
String? desc,
}) : _id = id ?? ObjectId(),
_bsid = bsid ?? ObjectId.fromHexString('000000000000000000000000'),
_time = time ?? DateTime.now().millisecondsSinceEpoch,
_extra = extra ?? DbJsonWraper(),
_trans = trans ?? [],
uid = uid ?? ObjectId.fromHexString('000000000000000000000000'),
type = type ?? 0,
state = state ?? 0,
image = image ?? '',
relation = relation ?? ObjectId.fromHexString('000000000000000000000000'),
host = host ?? '',
href = href ?? '',
customXNo = customXNo ?? 0,
customXId = customXId ?? ObjectId.fromHexString('000000000000000000000000'),
desc = desc ?? '';