A Maryland first grader whose battle with brain cancer inspired a comic book has died.

Dominic Osorio died Friday at the Johns Hopkins Children's Center. The 7-year-old had been hospitalized for the past two months. Dominic was diagnosed with cancer in 2007. His mom, Nicole Spagna, created the story of "The Dominator," a superhero, to help him through cancer treatments.

RELATED: 'Superhero' Battles Brain Cancer

After Dominic was diagnosed in 2007 with brain cancer, Bel Air restaurant manager Dave Anderson became so intrigued with Dominic’s story that he started fundraising for the boy – and rallied to have comic book made about “The Dominator.”

Getz-Calandra Productions has since published the illustrated book, which features “The Dominator” in a red bodysuit with a large blue “D” on his chest.

Anderson paid nearly $9,000 to design, create and copyright "The Dominator" and to publish 2,000 copies of the book.

The book has sold more than 1,000 copies since it came out in August. It costs $5, and proceeds from sales benefit children's cancer research.