toddler jumping on pregnant belly

I'm 27 weeks pregnant. My toddler was laying with me in bed. I was laying on my back and they kneed my stomach twice trying to climb on me, and I could feel them hit the baby hard. I decided to lay on my side. My toddler proceeded to jump on me again and landed on my stomach. All I could feel was them put all their weight on the baby. Should I be concerned? If it was enough from my toddler to hurt me, would it hurt the baby too? Baby isn't moving after the incident and my stomachs been super hard and still hurts.