User constructor
User({})
Implementation
factory User({
$core.String? id,
$core.String? optionalId,
$core.String? email,
$core.String? password,
$core.String? image,
$core.bool? externalEncrypted,
$core.int? externalEncryptionLevel,
$core.bool? internalEncrypted,
$core.int? internalEncryptionLevel,
$core.String? metadata,
$1.Timestamp? createdAt,
$1.Timestamp? updatedAt,
$1.Timestamp? encryptedAt,
}) {
final _result = create();
if (id != null) {
_result.id = id;
}
if (optionalId != null) {
_result.optionalId = optionalId;
}
if (email != null) {
_result.email = email;
}
if (password != null) {
_result.password = password;
}
if (image != null) {
_result.image = image;
}
if (externalEncrypted != null) {
_result.externalEncrypted = externalEncrypted;
}
if (externalEncryptionLevel != null) {
_result.externalEncryptionLevel = externalEncryptionLevel;
}
if (internalEncrypted != null) {
_result.internalEncrypted = internalEncrypted;
}
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;
}
return _result;
}