LogReport constructor

LogReport({
  1. dynamic id,
  2. dynamic bsid,
  3. int? time,
  4. DbJsonWraper? extra,
  5. List? trans,
  6. dynamic uid,
  7. int? type,
  8. int? state,
  9. String? image,
  10. dynamic relation,
  11. String? host,
  12. String? href,
  13. int? customXNo,
  14. dynamic customXId,
  15. String? desc,
})

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 ?? '';