A cheap stereo headphone cable is cut in half.
The "male" end of the cable is wired directly to the switch contacts.
The "Female" end is spliced to the stripped wires of the camera connector end.
Heat shrink tubing insulates and reinforces the splice and strain relief of the connector.