fromJSON

Deprecated

Use EditorSelectionData.toEditorSelection() instead.

Replace with

data.toEditorSelection()

Create a selection from a JSON representation.