StateFieldSpec.fromJSON method
StateFieldSpec › fromJSON
A function that deserializes the JSON representation of this field's content.Signature:
fromJSON(json: unknown, state: EditorState): ValueParameters:
| Parameter | Type | Description |
|---|---|---|
| json | unknown | The JSON representation of the value. |
| state | EditorState | The state to deserialize the value for. |
Returns: Value — The deserialized value.