The $3D$ generalization is nothing but $$F=-\nabla V$$One another necessary condition is $$\nabla×\vec{F}=0$$