User constructor
User({
- String? id,
- String? username,
- String? email,
- Hash? password,
- String? image,
- String? metadata,
- Timestamp? createdAt,
- Timestamp? updatedAt,
- String? firstName,
- String? lastName,
- Timestamp? birthdate,
- Timestamp? verificationEmailSentAt,
- Hash? emailVerificationCode,
- Timestamp? verificationEmailExpiresAt,
- int? verifyEmailAttempts,
- Hash? resetPasswordCode,
- Timestamp? resetPasswordCodeSentAt,
- Timestamp? resetPasswordCodeExpiresAt,
- int? resetPasswordAttempts,
- Iterable<
String> ? verifiedEmails, - String? emailHash,
- String? phone,
- String? phoneHash,
- Timestamp? verificationTextSentAt,
- Hash? phoneVerificationCode,
- Iterable<
String> ? verifiedPhoneNumbers, - LanguageCode? preferredLanguage,
- String? usernameHash,
- int? verifyPhoneAttempts,
- String? role,
- String? gender,
- String? country,
- String? address,
- String? city,
- String? postalCode,
Implementation
factory User({
$core.String? id,
$core.String? username,
$core.String? email,
Hash? password,
$core.String? image,
$core.String? metadata,
$1.Timestamp? createdAt,
$1.Timestamp? updatedAt,
$core.String? firstName,
$core.String? lastName,
$1.Timestamp? birthdate,
$1.Timestamp? verificationEmailSentAt,
Hash? emailVerificationCode,
$1.Timestamp? verificationEmailExpiresAt,
$core.int? verifyEmailAttempts,
Hash? resetPasswordCode,
$1.Timestamp? resetPasswordCodeSentAt,
$1.Timestamp? resetPasswordCodeExpiresAt,
$core.int? resetPasswordAttempts,
$core.Iterable<$core.String>? verifiedEmails,
$core.String? emailHash,
$core.String? phone,
$core.String? phoneHash,
$1.Timestamp? verificationTextSentAt,
Hash? phoneVerificationCode,
$core.Iterable<$core.String>? verifiedPhoneNumbers,
LanguageCode? preferredLanguage,
$core.String? usernameHash,
$core.int? verifyPhoneAttempts,
$core.String? role,
$core.String? gender,
$core.String? country,
$core.String? address,
$core.String? city,
$core.String? postalCode,
}) {
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 (metadata != null) {
_result.metadata = metadata;
}
if (createdAt != null) {
_result.createdAt = createdAt;
}
if (updatedAt != null) {
_result.updatedAt = updatedAt;
}
if (firstName != null) {
_result.firstName = firstName;
}
if (lastName != null) {
_result.lastName = lastName;
}
if (birthdate != null) {
_result.birthdate = birthdate;
}
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 (resetPasswordCodeSentAt != null) {
_result.resetPasswordCodeSentAt = resetPasswordCodeSentAt;
}
if (resetPasswordCodeExpiresAt != null) {
_result.resetPasswordCodeExpiresAt = resetPasswordCodeExpiresAt;
}
if (resetPasswordAttempts != null) {
_result.resetPasswordAttempts = resetPasswordAttempts;
}
if (verifiedEmails != null) {
_result.verifiedEmails.addAll(verifiedEmails);
}
if (emailHash != null) {
_result.emailHash = emailHash;
}
if (phone != null) {
_result.phone = phone;
}
if (phoneHash != null) {
_result.phoneHash = phoneHash;
}
if (verificationTextSentAt != null) {
_result.verificationTextSentAt = verificationTextSentAt;
}
if (phoneVerificationCode != null) {
_result.phoneVerificationCode = phoneVerificationCode;
}
if (verifiedPhoneNumbers != null) {
_result.verifiedPhoneNumbers.addAll(verifiedPhoneNumbers);
}
if (preferredLanguage != null) {
_result.preferredLanguage = preferredLanguage;
}
if (usernameHash != null) {
_result.usernameHash = usernameHash;
}
if (verifyPhoneAttempts != null) {
_result.verifyPhoneAttempts = verifyPhoneAttempts;
}
if (role != null) {
_result.role = role;
}
if (gender != null) {
_result.gender = gender;
}
if (country != null) {
_result.country = country;
}
if (address != null) {
_result.address = address;
}
if (city != null) {
_result.city = city;
}
if (postalCode != null) {
_result.postalCode = postalCode;
}
return _result;
}