The webcam originally came with a magnetic cover, but using it was quite cumbersome, since once it is taken off, there is no way to store it, and I quickly lost it. For a solution I designed an attached flip-cover, that also locks in place in the closed position. The main part is a friction fit to the webcam's body.
The model was made in onshape, the workspace can be found here.
The author marked this model as their own original creation.