UserEntity(user: User)
create a userEntity from a user object
UserEntity(id: String)
The UserEntity, id is a required field All other fields are optional and can be null
You can convert a User object from the low level client to a UserEntity like this val userEntity = UserEntity(user) and back: userEntity.toUser()