In this Sunday, June 26, 2016 photo Nicole Maines poses at her home in Portland, Maine. Maines, 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. Maines will star in The CW/Warner Bros.' "Supergirl" as Nia Nal, aka Dreamer. Producers describe her character as a "soulful young transgender woman with a fierce drive to protect others." Credit: Robert F. Bukaty | 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.’ “Supergirl” as Nia Nal, aka Dreamer. Producers describe her character as a “soulful young transgender woman with a fierce drive to protect others.”

[Nicole Maines to make big screen debut in indie vampire flick]

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.

[Nicole Maines tells UMaine audience about growing up transgender]

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.

Follow the Bangor Daily News on Facebook for the latest Maine news.