fromJson
Static factory that reconstructs a PromptObjectModel from JSON
data. Use this to restore a model serialized via toJson().
Parameters
jsonData
Either a JSON string or an already-parsed array of section data objects. A
string is parsed with JSON.parse(); anything else is used directly.
Returns
PromptObjectModel — A new model populated from the supplied data.