The demo shows how to export a Dashboards configuration to JSON. For demo purposes it's saved to local storage, but could e.g. be saved to a database and retrieved at a later stage. It also shows how to add a menu item to editMode.contextMenu in addition to an external button outside the dashboard, depending on your specific use case.
Status: the local storage is empty

Dashboards configuration preview