Hi
@LucaMs
The way I would have approached this would be to serialize the view and save it to a database or file. However, it appears that it is not possible to serialize views.
As an alternative approach it should be possible to save the various properties of a view along with an ID to a file or database. By doing this it would be possible to retrieve a view's details and recreate it.