# OperationFactory

class

A factory class for creating operations.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/model/operation/operationfactory.ts#L45)

<a id="methods">

## Methods

#### Static methods

<a id="static-function-fromJSON">

### `fromJSON( json, document ) → Operation` _(static)_

Creates an operation instance from a JSON object (parsed JSON string).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/model/operation/operationfactory.ts#L52)

#### Parameters

* `json: any`

  Deserialized JSON object.

* `document: ModelDocument`

  Document on which this operation will be applied.

#### Returns

* `Operation`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
