Sarah Hyland (Kevin Winter/Getty Images for DCP)

The “Modern Family” actress made the announcement in the current issue of Seventeen magazine and on Monday’s “Good Morning America.”

The 21-year-old explained that she was diagnosed with kidney dysplasia when she was 9-years-old. Hyland told ABC the disease caused her to “be in a lot of pain a lot of the time.”

“You know, if you’re sick, you still go to work,” Hyland, who plays the eldest Dunphy child on the Emmy award winning comedy “Modern Family,” told ABC. She was given a kidney by her father in April to avoid using dialysis for the rest of her life.

The actress told Seventeen she is working as a youth ambassador with the Lopez Foundation, an organization created by actor George Lopez, in part, to serve underprivileged children and raise awareness about kidney disease. “I think it’s really great because it gives kids opportunities they wouldn’t normally have and I’ve had experiences like that in my life, so it’s really close to my heart,” Hyland told the magazine.

Read more at Seventeen magazine.