A three-year-old boy has been rushed to hospital with serious injuries after being hit by a car at a campsite.