fromSections
Static factory method that reconstructs a PomBuilder from an array of
PomSectionData objects. Use this to restore a prompt serialized via
toJson() or
toDict().
Parameters
sections
Array of section data objects. Each may include title, body, bullets,
numbered, numberedBullets, and nested subsections. Untitled sections are
allowed and still render, but they are not addressable by title — they are
dropped from the title lookup, so hasSection() and getSection() cannot find
them.
Returns
PomBuilder — a new builder populated with the given sections.