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.0.0+89a02853fc03095ce3d28e19ceda0fd8e02a7ef0
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