When I save a mesh via toJSON() how do I include a DataTexture?

I am saving a collection of meshes via toJSON(). I see that my material textures just get saved as a UUID. What are my options for saving the actual texture data to disk as well. I am happy to write to separate - perhaps no JSON - file if that is my only option.