BURBANK  (CBSLA/AP) — A transgender activist who won a discrimination lawsuit after her school refused to let her use the girls’ bathroom will be TV’s first transgender superhero.

Nicole Maines will star in The CW/Warner Bros.’ series “Supergirl” as Nia Nal, aka Dreamer. Producers describe her character as a “soulful young transgender woman with a fierce drive to protect others.”

READ MORE: Torrance Woman Arrested In Mistaken ID Retaliation Murder Of NorCal Rapper

Maines gained national attention for her battle against her Orono, Maine school district over her right to use the girls’ bathroom.

Maine’s highest court ruled in 2014 that school officials violated state anti-discrimination law when they required her to use a staff restroom.

It was the first time a state high court concluded that a transgender person should use the bathroom of the gender with which they identify.

Maines (named Wyatt at birth) and identical twin brother Jonas were adopted at birth in 1997 by conservative parents.

The Washington Post profiled the siblings in 2015 when Random House published “Becoming Nicole: The Transformation of an American Family.”

Maines’ credits include the TV series “Royal Pains: and a future comedy horror film called “Bit.” She’s also appeared into two documentaries about transgender people, “Not Your Skin” and “The Trans List.”

The CW is jointly owned by the CBS Television Network and Warner Bros. Entertainment.

MORE NEWS: UCLA Basketball Star Johnny Juzang Declares For NBA Draft, But Intends To Retain Collegiate Eligibility

(@Copyright 2018. The Associated Press contributed to this report. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)