User constructor

User({
  1. String? id,
  2. String? username,
  3. Hash? password,
  4. Iterable<Group>? groups,
  5. UserContactInfo? contactInfo,
  6. UserProfile? profile,
  7. 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;
}