A period map for generalized deformations