User constructor
User({
- String? id,
- String? username,
- Hash? password,
- String? role,
- UserContactInfo? contactInfo,
- UserProfile? profile,
- UserMeta? meta,
Implementation
factory User({
$core.String? id,
$core.String? username,
Hash? password,
$core.String? role,
UserContactInfo? contactInfo,
UserProfile? profile,
UserMeta? meta,
}) {
final _result = create();
if (id != null) {
_result.id = id;
}
if (username != null) {
_result.username = username;
}
if (password != null) {
_result.password = password;
}
if (role != null) {
_result.role = role;
}
if (contactInfo != null) {
_result.contactInfo = contactInfo;
}
if (profile != null) {
_result.profile = profile;
}
if (meta != null) {
_result.meta = meta;
}
return _result;
}