toDict
Convert the entire model to an array of plain SectionData objects. Useful for
serializing the POM for storage or passing to other components.
Parameters
None.
Returns
SectionData[] — Serialized section list. See the
PromptObjectModel overview for the SectionData shape.