LogError constructor

LogError({
  1. dynamic id,
  2. dynamic bsid,
  3. int? time,
  4. DbJsonWraper? extra,
  5. List? trans,
  6. dynamic uid,
  7. int? clientVersion,
  8. String? deviceType,
  9. String? deviceVersion,
  10. DbJsonWraper? deviceDetail,
  11. DbJsonWraper? errorDetail,
  12. int? errorTime,
  13. bool? finished,
})

Implementation

LogError({
  ObjectId? id,
  ObjectId? bsid,
  int? time,
  DbJsonWraper? extra,
  List<ObjectId>? trans,
  ObjectId? uid,
  int? clientVersion,
  String? deviceType,
  String? deviceVersion,
  DbJsonWraper? deviceDetail,
  DbJsonWraper? errorDetail,
  int? errorTime,
  bool? finished,
})  : _id = id ?? ObjectId(),
      _bsid = bsid ?? ObjectId.fromHexString('000000000000000000000000'),
      _time = time ?? DateTime.now().millisecondsSinceEpoch,
      _extra = extra ?? DbJsonWraper(),
      _trans = trans ?? [],
      uid = uid ?? ObjectId.fromHexString('000000000000000000000000'),
      clientVersion = clientVersion ?? 0,
      deviceType = deviceType ?? '',
      deviceVersion = deviceVersion ?? '',
      deviceDetail = deviceDetail ?? DbJsonWraper(),
      errorDetail = errorDetail ?? DbJsonWraper(),
      errorTime = errorTime ?? 0,
      finished = finished ?? false;