ように扱われる

be treated like; be treated in a certain way

→ よう
phrase Uncommon #14,855
be treated like; be treated in a certain way ように indicates the manner or way someone is treated; 扱われる is the passive form of 扱う, “to treat.”
JA: 召使いのように扱われるのは嫌だ。
EN: I don't want to be treated like a servant.

私は子どものように扱われることに反対した。

I objected to being treated like a child.

私はあのように扱われるのはいやだ。

I don't like being treated that way.

私はそのように扱われることに反対する。

I object to being treated that way.

子供みたいなことをするんなら、そのように扱われるってことだよ。

If you act like a child, you’ll be treated like one.

私は子供のように扱われるのには反対だ。

I object to being treated like a child.

私たちは金持ちも貧乏人も同じように扱われると主張した。

We argued that the rich and the poor should be treated equally.