toUser method
Implementation
User toUser() => User(
id: this.id,
properties: this.properties.map((it) => it.toProperty()).toSet(),
roles: this.roles,
autoDelegations: this.autoDelegations,
rev: this.rev,
deletionDate: this.deletionDate,
created: this.created,
name: this.name,
login: this.login,
passwordHash: this.passwordHash,
secret: this.secret,
use2fa: this.use2fa,
groupId: this.groupId,
healthcarePartyId: this.healthcarePartyId,
patientId: this.patientId,
deviceId: this.deviceId,
email: this.email,
mobilePhone: this.mobilePhone,
status: this.status?.let((it) => UserDtoStatusEnumMapper(it).toUserStatus()));