Not very clear (and I'm still benevolent) your request: because your attached image does not correspond at all to a switch since it is a flip-flop system with magnet intended for opening kitchen units (or similar).
Since it's made of plastic, you just need to know if it will be done for example with a 3D printer.
Because in this case, with a compliant tongue to hold in the low position and then continuing 3 mm downwards, it loosens the position and allows the top piece to return to the high position. The upper position is held in a stop by the spring. This can make it easier for you to guide the moving part.
Note that the spring can also be made of plastic but this is especially valid with compliant tabs whose shape remains to be determined according to the force required to hold it in the high position.
If you were extremely kind enough to tell us what it's for (and what approximate size) we could maybe make you benefit from our experience and maybe offer you a solution that you haven't quite thought about yet. ;-)