toEntity

fun User.toEntity(actualId: String? = null): UserEntity

Convert a user to a user entity.