I’m trying to use a ValueTree to store complex objects in getStateInformation(). However I see there is an helper function called copyXmlToBinary(), but there isn’t anything to copy a ValueTree to destData.
How should I manage to store in destData a ValueTree with objects? Should I convert it to XML (does it works with valuetrees that have objects?)? Or is there something that I could do directly, without workarounds?