Team constructor
Team({
- dynamic id,
- dynamic bsid,
- int? time,
- DbJsonWraper? extra,
- List? trans,
- dynamic owner,
- List? 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,
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;