of

fun of(to: User, from: User): FriendshipRequest

Creates a friendship request.

Return

the friendship request

Parameters

to

the user to whom the friendship request is sent

from

the user who sends the friendship request

Throws

if the user sends a friendship request to itself