LogLogin constructor

LogLogin({
  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. int? loginCount,
  12. Location? location,
  13. int? login,
  14. String? ip,
})

Implementation

LogLogin({
  ObjectId? id,
  ObjectId? bsid,
  int? time,
  DbJsonWraper? extra,
  List<ObjectId>? trans,
  ObjectId? uid,
  int? clientVersion,
  String? deviceType,
  String? deviceVersion,
  DbJsonWraper? deviceDetail,
  int? loginCount,
  Location? location,
  int? login,
  String? ip,
})  : _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(),
      loginCount = loginCount ?? 0,
      location = location ?? Location(),
      login = login ?? 0,
      ip = ip ?? '';