Gevrey class regularity of solutions to the Nernst–Planck–Poisson equations with generalized dissipation