It just says:

However, in this case, the serialized data is bound to the specific classes and the exact directory structure used, so it can break in various ways when used in other projects, or after some serious refactors.

So no, unfortunately, this doesn’t help as this is exactly what I described and what I don’t want.