User constructor
User({
- String? id,
- String? username,
- Hash? password,
- Iterable<
Group> ? groups, - UserContactInfo? contactInfo,
- UserProfile? profile,
- UserMeta? meta,
Implementation
factory User({
$core.String? id,
$core.String? username,
Hash? password,
$core.Iterable<Group>? groups,
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 (groups != null) {
_result.groups.addAll(groups);
}
if (contactInfo != null) {
_result.contactInfo = contactInfo;
}
if (profile != null) {
_result.profile = profile;
}
if (meta != null) {
_result.meta = meta;
}
return _result;
}