A dynamical system representation of generalized Rastall gravity