User constructor

User({
  1. String? id,
  2. String? email,
  3. String? password,
  4. Gender? gender,
  5. Timestamp? birthday,
  6. CountryCode? country,
  7. bool? blocked,
  8. LanguageCode? preferredLanguage,
  9. String? name,
  10. Timestamp? createdAt,
  11. Timestamp? updatedAt,
  12. String? ssnId,
  13. String? ssnHash,
})

Implementation

factory User({
  $core.String? id,
  $core.String? email,
  $core.String? password,
  Gender? gender,
  $1.Timestamp? birthday,
  CountryCode? country,
  $core.bool? blocked,
  LanguageCode? preferredLanguage,
  $core.String? name,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
  $core.String? ssnId,
  $core.String? ssnHash,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (email != null) {
    _result.email = email;
  }
  if (password != null) {
    _result.password = password;
  }
  if (gender != null) {
    _result.gender = gender;
  }
  if (birthday != null) {
    _result.birthday = birthday;
  }
  if (country != null) {
    _result.country = country;
  }
  if (blocked != null) {
    _result.blocked = blocked;
  }
  if (preferredLanguage != null) {
    _result.preferredLanguage = preferredLanguage;
  }
  if (name != null) {
    _result.name = name;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  if (ssnId != null) {
    _result.ssnId = ssnId;
  }
  if (ssnHash != null) {
    _result.ssnHash = ssnHash;
  }
  return _result;
}