You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

267 lines
7.1 KiB

/// id : "1738082396969893888"
/// createTime : "2023-12-22 14:21:50"
/// createUser : "1640233401329909760"
/// updateTime : "2023-12-22 14:21:50"
/// updateUser : "1640233401329909760"
/// account : "13052919193"
/// name : "wu"
/// org : null
/// station : null
/// type : null
/// email : null
/// mobile : null
/// sex : {"desc":"未知","code":"N"}
/// status : null
/// avatar : null
/// nation : null
/// education : null
/// positionStatus : null
/// workDescribe : null
/// passwordErrorLastTime : null
/// passwordErrorNum : 0
/// passwordExpireTime : null
/// password : "e10adc3949ba59abbe56e057f20f883e"
/// lastLoginTime : null
class UserInfoEdit {
UserInfoEdit({
String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String account,
String name,
dynamic org,
dynamic station,
dynamic type,
dynamic email,
dynamic mobile,
Sex sex,
dynamic status,
dynamic avatar,
dynamic nation,
dynamic education,
dynamic positionStatus,
dynamic workDescribe,
dynamic passwordErrorLastTime,
num passwordErrorNum,
dynamic passwordExpireTime,
String password,
dynamic lastLoginTime,}){
_id = id;
_createTime = createTime;
_createUser = createUser;
_updateTime = updateTime;
_updateUser = updateUser;
_account = account;
_name = name;
_org = org;
_station = station;
_type = type;
_email = email;
_mobile = mobile;
_sex = sex;
_status = status;
_avatar = avatar;
_nation = nation;
_education = education;
_positionStatus = positionStatus;
_workDescribe = workDescribe;
_passwordErrorLastTime = passwordErrorLastTime;
_passwordErrorNum = passwordErrorNum;
_passwordExpireTime = passwordExpireTime;
_password = password;
_lastLoginTime = lastLoginTime;
}
UserInfoEdit.fromJson(dynamic json) {
_id = json['id'];
_createTime = json['createTime'];
_createUser = json['createUser'];
_updateTime = json['updateTime'];
_updateUser = json['updateUser'];
_account = json['account'];
_name = json['name'];
_org = json['org'];
_station = json['station'];
_type = json['type'];
_email = json['email'];
_mobile = json['mobile'];
_sex = json['sex'] != null ? Sex.fromJson(json['sex']) : null;
_status = json['status'];
_avatar = json['avatar'];
_nation = json['nation'];
_education = json['education'];
_positionStatus = json['positionStatus'];
_workDescribe = json['workDescribe'];
_passwordErrorLastTime = json['passwordErrorLastTime'];
_passwordErrorNum = json['passwordErrorNum'];
_passwordExpireTime = json['passwordExpireTime'];
_password = json['password'];
_lastLoginTime = json['lastLoginTime'];
}
String _id;
String _createTime;
String _createUser;
String _updateTime;
String _updateUser;
String _account;
String _name;
dynamic _org;
dynamic _station;
dynamic _type;
dynamic _email;
dynamic _mobile;
Sex _sex;
dynamic _status;
dynamic _avatar;
dynamic _nation;
dynamic _education;
dynamic _positionStatus;
dynamic _workDescribe;
dynamic _passwordErrorLastTime;
num _passwordErrorNum;
dynamic _passwordExpireTime;
String _password;
dynamic _lastLoginTime;
UserInfoEdit copyWith({ String id,
String createTime,
String createUser,
String updateTime,
String updateUser,
String account,
String name,
dynamic org,
dynamic station,
dynamic type,
dynamic email,
dynamic mobile,
Sex sex,
dynamic status,
dynamic avatar,
dynamic nation,
dynamic education,
dynamic positionStatus,
dynamic workDescribe,
dynamic passwordErrorLastTime,
num passwordErrorNum,
dynamic passwordExpireTime,
String password,
dynamic lastLoginTime,
}) => UserInfoEdit( id: id ?? _id,
createTime: createTime ?? _createTime,
createUser: createUser ?? _createUser,
updateTime: updateTime ?? _updateTime,
updateUser: updateUser ?? _updateUser,
account: account ?? _account,
name: name ?? _name,
org: org ?? _org,
station: station ?? _station,
type: type ?? _type,
email: email ?? _email,
mobile: mobile ?? _mobile,
sex: sex ?? _sex,
status: status ?? _status,
avatar: avatar ?? _avatar,
nation: nation ?? _nation,
education: education ?? _education,
positionStatus: positionStatus ?? _positionStatus,
workDescribe: workDescribe ?? _workDescribe,
passwordErrorLastTime: passwordErrorLastTime ?? _passwordErrorLastTime,
passwordErrorNum: passwordErrorNum ?? _passwordErrorNum,
passwordExpireTime: passwordExpireTime ?? _passwordExpireTime,
password: password ?? _password,
lastLoginTime: lastLoginTime ?? _lastLoginTime,
);
String get id => _id;
String get createTime => _createTime;
String get createUser => _createUser;
String get updateTime => _updateTime;
String get updateUser => _updateUser;
String get account => _account;
String get name => _name;
dynamic get org => _org;
dynamic get station => _station;
dynamic get type => _type;
dynamic get email => _email;
dynamic get mobile => _mobile;
Sex get sex => _sex;
dynamic get status => _status;
dynamic get avatar => _avatar;
dynamic get nation => _nation;
dynamic get education => _education;
dynamic get positionStatus => _positionStatus;
dynamic get workDescribe => _workDescribe;
dynamic get passwordErrorLastTime => _passwordErrorLastTime;
num get passwordErrorNum => _passwordErrorNum;
dynamic get passwordExpireTime => _passwordExpireTime;
String get password => _password;
dynamic get lastLoginTime => _lastLoginTime;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = _id;
map['createTime'] = _createTime;
map['createUser'] = _createUser;
map['updateTime'] = _updateTime;
map['updateUser'] = _updateUser;
map['account'] = _account;
map['name'] = _name;
map['org'] = _org;
map['station'] = _station;
map['type'] = _type;
map['email'] = _email;
map['mobile'] = _mobile;
if (_sex != null) {
map['sex'] = _sex.toJson();
}
map['status'] = _status;
map['avatar'] = _avatar;
map['nation'] = _nation;
map['education'] = _education;
map['positionStatus'] = _positionStatus;
map['workDescribe'] = _workDescribe;
map['passwordErrorLastTime'] = _passwordErrorLastTime;
map['passwordErrorNum'] = _passwordErrorNum;
map['passwordExpireTime'] = _passwordExpireTime;
map['password'] = _password;
map['lastLoginTime'] = _lastLoginTime;
return map;
}
}
/// desc : "未知"
/// code : "N"
class Sex {
Sex({
String desc,
String code,}){
_desc = desc;
_code = code;
}
Sex.fromJson(dynamic json) {
_desc = json['desc'];
_code = json['code'];
}
String _desc;
String _code;
Sex copyWith({ String desc,
String code,
}) => Sex( desc: desc ?? _desc,
code: code ?? _code,
);
String get desc => _desc;
String get code => _code;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['desc'] = _desc;
map['code'] = _code;
return map;
}
}