For level 1 and 2 charging, the charger is in the car. J1772 ports are basically just fancy 110v or 220v AC plugs with some extra signalling.
DC charging tends to happen at much higher power levels, and that equipment is expensive so the AC-DC converter is kept outside of the car. The car itself just has a couple contactors (i.e. high power relays) to connect the charge port directly to the battery, and a microcontroller to tell the charger how much current it can handle at what voltage.