BURBANK, Calif. (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.”

READ MORE: 7 Shot, Including 5 Teenagers, In West Baltimore Friday Night

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.

READ MORE: ‘We Want To Prevent This From Happening Again’ Witnesses Describe Deadly Collision Between Fire Truck And Dirt Bike Rider In Baltimore As Advocates Call For Solutions

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 @WJZ on Twitter and like WJZ-TV | CBS Baltimore on Facebook

MORE NEWS: 'It's Ridiculous': Drivers React To Increase In Gas Prices

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)