AppSettings not getting persisted as xml file

My plugin’s settings are not getting persisted as xml file and that’s why when I close the IDE all the settings are gone. Below is the AppSettings class.

I am trying to store some global settings and project specific settings(in a map).

Also, what’s the recommended way to store project specific settings?

It’s resolved now. I was using compound objects within state class which was not getting serialized as XML.