toJson method
Implementation
String toJson() {
return switch (this) {
FriendshipStatus.pending => 'pending',
FriendshipStatus.accepted => 'accepted',
FriendshipStatus.rejected => 'rejected',
FriendshipStatus.blocked => 'blocked',
};
}