Function: fromJSON()
ts
function fromJSON(text): Roll[] | null;Defined in: src/export.ts:79
Rolls from JSON that toJSON wrote, or a history that serializeHistory did. Nothing in it is trusted: each roll is put together again from its dice and its faces, and one that does not add up is left out. Null when the text is not JSON, holds no list of rolls, or is of a later format than this version reads.
Parameters
text
string
Returns
Roll[] | null