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: Three Teenagers Critically Wounded At Halloween House Party In Whittier

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.

READ MORE: Suspect Arrested In Death Of Man At Newport Pier

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: Fullerton Police Say They Recovered Loaded Stolen Handgun, Nitrous Oxide

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