In this paper, we realize C*-algebras of generalized Boolean dynamical systems as partial crossed products. Reciprocally, we give some sufficient conditions for a partial crossed product to be isomorphic to a C*-algebra of a generalized Boolean dynamical system. As an application, we show that gauge-invariant ideals of C*-algebras of generalized Boolean dynamical systems are themselves C*-algebras of generalized Boolean dynamical systems.