create

open fun create(id: UserId, name: String, surname: String, email: String): User

Factory method to create an instance of User.

Return

a new instance of User

Parameters

id

the ID of the user

name

the name of the user

surname

the surname of the user

email

the email of the user