Team constructor

Team({
  1. dynamic id,
  2. dynamic bsid,
  3. int? time,
  4. DbJsonWraper? extra,
  5. List? trans,
  6. dynamic owner,
  7. List? admin,
  8. int? member,
  9. String? appSecret,
  10. List<String>? appHosts,
  11. List<DbJsonWraper>? appMenus,
  12. String? no,
  13. String? pwd,
  14. String? nick,
  15. String? desc,
  16. String? icon,
  17. List<String>? head,
  18. bool? byfind,
  19. bool? bycode,
  20. bool? bycard,
  21. bool? byteam,
  22. bool? notice,
  23. bool? silent,
  24. int? deny,
})

Implementation

Team({
  ObjectId? id,
  ObjectId? bsid,
  int? time,
  DbJsonWraper? extra,
  List<ObjectId>? trans,
  ObjectId? owner,
  List<ObjectId>? admin,
  int? member,
  String? appSecret,
  List<String>? appHosts,
  List<DbJsonWraper>? appMenus,
  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 ?? [],
      owner = owner ?? ObjectId.fromHexString('000000000000000000000000'),
      admin = admin ?? [],
      member = member ?? 0,
      appSecret = appSecret ?? '',
      appHosts = appHosts ?? [],
      appMenus = appMenus ?? [],
      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;