User constructor

User({
  1. String? id,
  2. String? optionalId,
  3. String? email,
  4. String? password,
  5. String? image,
  6. bool? externalEncrypted,
  7. int? externalEncryptionLevel,
  8. bool? internalEncrypted,
  9. int? internalEncryptionLevel,
  10. String? metadata,
  11. Timestamp? createdAt,
  12. Timestamp? updatedAt,
  13. Timestamp? encryptedAt,
})

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;
}