Print with the smallest Layer Height you can and 100% Infill. Each part should work with the original Counterpart. You have to glue the magnet in and maybe soften the plastic a bit by heating it up.
If you need a base try this one: https://www.thingiverse.com/thing:4259926
Category: Other
The author marked this model as their own original creation. Imported from Thingiverse.