AnswerFileOptionsFromJson Method

Creates an instance of the AnswerFileOptions class based on the specified JSON value.

Definition

Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
C#
public static AnswerFileOptions? FromJson(
	ReadOnlySpan<char> json
)

Parameters

json  ReadOnlySpanChar
The JSON value.

Return Value

AnswerFileOptions
An instance of the AnswerFileOptions class, or if json is a single value.

Exceptions

JsonExceptionjson is not a valid JSON representation of the AnswerFileOptions class.

See Also