toUserInfo

open fun <T : User?> toUserInfo(@NonNull user: T): UserInfo