User constructor

User({
  1. dynamic id,
  2. dynamic bsid,
  3. int? time,
  4. DbJsonWraper? extra,
  5. List? trans,
  6. String? phone,
  7. String? token,
  8. String? rmbpwd,
  9. int? rmbfen,
  10. int? thirdTp,
  11. String? thirdNo,
  12. int? customType,
  13. String? name,
  14. String? card,
  15. String? birth,
  16. int? sex,
  17. String? country,
  18. String? province,
  19. String? city,
  20. String? district,
  21. Location? location,
  22. int? login,
  23. String? ip,
  24. String? no,
  25. String? pwd,
  26. String? nick,
  27. String? desc,
  28. String? icon,
  29. List<String>? head,
  30. bool? byfind,
  31. bool? bycode,
  32. bool? bycard,
  33. bool? byteam,
  34. bool? notice,
  35. bool? silent,
  36. int? deny,
})

Implementation

User({
  ObjectId? id,
  ObjectId? bsid,
  int? time,
  DbJsonWraper? extra,
  List<ObjectId>? trans,
  String? phone,
  String? token,
  String? rmbpwd,
  int? rmbfen,
  int? thirdTp,
  String? thirdNo,
  int? customType,
  String? name,
  String? card,
  String? birth,
  int? sex,
  String? country,
  String? province,
  String? city,
  String? district,
  Location? location,
  int? login,
  String? ip,
  String? no,
  String? pwd,
  String? nick,
  String? desc,
  String? icon,
  List<String>? head,
  bool? byfind,
  bool? bycode,
  bool? bycard,
  bool? byteam,
  bool? notice,
  bool? silent,
  int? deny,
})  : _id = id ?? ObjectId(),
      _bsid = bsid ?? ObjectId.fromHexString('000000000000000000000000'),
      _time = time ?? DateTime.now().millisecondsSinceEpoch,
      _extra = extra ?? DbJsonWraper(),
      _trans = trans ?? [],
      phone = phone ?? '',
      token = token ?? '',
      rmbpwd = rmbpwd ?? '',
      rmbfen = rmbfen ?? 0,
      thirdTp = thirdTp ?? 0,
      thirdNo = thirdNo ?? '',
      customType = customType ?? 0,
      name = name ?? '',
      card = card ?? '',
      birth = birth ?? '',
      sex = sex ?? 0,
      country = country ?? '',
      province = province ?? '',
      city = city ?? '',
      district = district ?? '',
      location = location ?? Location(),
      login = login ?? 0,
      ip = ip ?? '',
      no = no ?? '',
      pwd = pwd ?? '',
      nick = nick ?? '',
      desc = desc ?? '',
      icon = icon ?? '',
      head = head ?? [],
      byfind = byfind ?? true,
      bycode = bycode ?? true,
      bycard = bycard ?? true,
      byteam = byteam ?? true,
      notice = notice ?? true,
      silent = silent ?? false,
      deny = deny ?? 0;