User constructor

User({
  1. String? id,
  2. String? username,
  3. String? email,
  4. String? password,
  5. String? image,
  6. int? externalEncryptionLevel,
  7. int? internalEncryptionLevel,
  8. String? metadata,
  9. Timestamp? createdAt,
  10. Timestamp? updatedAt,
  11. Timestamp? encryptedAt,
  12. String? firstName,
  13. String? lastName,
  14. Timestamp? birthdate,
  15. Timestamp? emailVerifiedAt,
  16. bool? emailIsVerified,
  17. Timestamp? verificationEmailSentAt,
  18. String? emailVerificationCode,
  19. Timestamp? verificationEmailExpiresAt,
  20. int? verifyEmailAttempts,
  21. String? resetPasswordCode,
  22. Timestamp? resetPasswordEmailSentAt,
  23. Timestamp? resetPasswordEmailExpiresAt,
  24. int? resetPasswordAttempts,
  25. Iterable<String>? verifiedEmails,
  26. String? emailHash,
  27. String? phoneNumber,
  28. String? phoneNumberHash,
  29. bool? phoneNumberIsVerified,
  30. Timestamp? verificationTextSentAt,
  31. Iterable<String>? verifiedPhoneNumbers,
})

Implementation

factory User({
  $core.String? id,
  $core.String? username,
  $core.String? email,
  $core.String? password,
  $core.String? image,
  $core.int? externalEncryptionLevel,
  $core.int? internalEncryptionLevel,
  $core.String? metadata,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
  $1.Timestamp? encryptedAt,
  $core.String? firstName,
  $core.String? lastName,
  $1.Timestamp? birthdate,
  $1.Timestamp? emailVerifiedAt,
  $core.bool? emailIsVerified,
  $1.Timestamp? verificationEmailSentAt,
  $core.String? emailVerificationCode,
  $1.Timestamp? verificationEmailExpiresAt,
  $core.int? verifyEmailAttempts,
  $core.String? resetPasswordCode,
  $1.Timestamp? resetPasswordEmailSentAt,
  $1.Timestamp? resetPasswordEmailExpiresAt,
  $core.int? resetPasswordAttempts,
  $core.Iterable<$core.String>? verifiedEmails,
  $core.String? emailHash,
  $core.String? phoneNumber,
  $core.String? phoneNumberHash,
  $core.bool? phoneNumberIsVerified,
  $1.Timestamp? verificationTextSentAt,
  $core.Iterable<$core.String>? verifiedPhoneNumbers,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (username != null) {
    _result.username = username;
  }
  if (email != null) {
    _result.email = email;
  }
  if (password != null) {
    _result.password = password;
  }
  if (image != null) {
    _result.image = image;
  }
  if (externalEncryptionLevel != null) {
    _result.externalEncryptionLevel = externalEncryptionLevel;
  }
  if (internalEncryptionLevel != null) {
    _result.internalEncryptionLevel = internalEncryptionLevel;
  }
  if (metadata != null) {
    _result.metadata = metadata;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  if (encryptedAt != null) {
    _result.encryptedAt = encryptedAt;
  }
  if (firstName != null) {
    _result.firstName = firstName;
  }
  if (lastName != null) {
    _result.lastName = lastName;
  }
  if (birthdate != null) {
    _result.birthdate = birthdate;
  }
  if (emailVerifiedAt != null) {
    _result.emailVerifiedAt = emailVerifiedAt;
  }
  if (emailIsVerified != null) {
    _result.emailIsVerified = emailIsVerified;
  }
  if (verificationEmailSentAt != null) {
    _result.verificationEmailSentAt = verificationEmailSentAt;
  }
  if (emailVerificationCode != null) {
    _result.emailVerificationCode = emailVerificationCode;
  }
  if (verificationEmailExpiresAt != null) {
    _result.verificationEmailExpiresAt = verificationEmailExpiresAt;
  }
  if (verifyEmailAttempts != null) {
    _result.verifyEmailAttempts = verifyEmailAttempts;
  }
  if (resetPasswordCode != null) {
    _result.resetPasswordCode = resetPasswordCode;
  }
  if (resetPasswordEmailSentAt != null) {
    _result.resetPasswordEmailSentAt = resetPasswordEmailSentAt;
  }
  if (resetPasswordEmailExpiresAt != null) {
    _result.resetPasswordEmailExpiresAt = resetPasswordEmailExpiresAt;
  }
  if (resetPasswordAttempts != null) {
    _result.resetPasswordAttempts = resetPasswordAttempts;
  }
  if (verifiedEmails != null) {
    _result.verifiedEmails.addAll(verifiedEmails);
  }
  if (emailHash != null) {
    _result.emailHash = emailHash;
  }
  if (phoneNumber != null) {
    _result.phoneNumber = phoneNumber;
  }
  if (phoneNumberHash != null) {
    _result.phoneNumberHash = phoneNumberHash;
  }
  if (phoneNumberIsVerified != null) {
    _result.phoneNumberIsVerified = phoneNumberIsVerified;
  }
  if (verificationTextSentAt != null) {
    _result.verificationTextSentAt = verificationTextSentAt;
  }
  if (verifiedPhoneNumbers != null) {
    _result.verifiedPhoneNumbers.addAll(verifiedPhoneNumbers);
  }
  return _result;
}