Method FromJson
FromJson(string)
Reads a workflow from its JSON form.
public static WorkflowDefinition FromJson(string json)
Parameters
jsonstringThe JSON.
Returns
- WorkflowDefinition
The workflow.
Exceptions
- ArgumentNullException
Thrown when
jsonis null.- JsonException
Thrown when the text is not a workflow.
- WorkflowSchemaVersionException
Thrown when the workflow is written in a newer schema.