にしてもらいたいと思うように

as you would like others to do for you

→ に
phrase Rare #38,246
as you would like others to do for you Used in the pattern 〜してもらいたいと思うように〜して, meaning “do ... as you would like others to do ... for you.”
JA: 自分が人にしてもらいたいと思うように、人にも親切にしよう。
EN: Let's be kind to others as we would like them to be kind to us.

自分がにしてもらいたいと思うように人にせよ

Do unto others as you would have them do unto you.

にしてもらいたいと思うように人にしてあげなさい

Do unto others as you would have them do unto you.

他人にしてもらいたいと思うように他人に対してしなさい

Do unto others as you would have them do unto you.

あなたが他人にしてもらいたいと思うように他人にもしない

Don't do to others what you would want them to do to you.