Do you mean ‘object’, like this?
If that’s the case, you can’t put it in the save game. You need to convert the object to a struct to save it, and you might as well have used structs the whole time.
You could write a bit of code to convert the object to a struct at the last moment before saving ( rather than re-writing eveything ).