Method FromJson
FromJson(string)
Reads a definition from its JSON form.
public static HttpApiToolDefinition FromJson(string json)
Parameters
jsonstringThe JSON.
Returns
- HttpApiToolDefinition
The definition.
Exceptions
- ArgumentNullException
Thrown when
jsonis null.- JsonException
Thrown when the text is not a definition.