Role of isotropic and anisotropic Dzyaloshinskii-Moriya interaction on skyrmions, merons and antiskyrmions in the $C_{nv}$ symmetric system