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