DiagramModel = object
object
Persistable shape of a complete diagram: name, layout direction, and xyflow’s serialised viewport + nodes + edges JSON. The format used by built-in templates and the integration layer.