Well, the member-variables of objects are more or less static. Thus it would be able to serialize the state of an object.
If I unterstand right, Unity provides this:
I did not check it out, but here is or was an approach, and there is also a thread here in the forum, discussing the topic. Can’t find it right now.