DurationJsonConverterRead Method

Reads and converts the JSON to type T.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public override Duration Read(
	ref Utf8JsonReader reader,
	Type typeToConvert,
	JsonSerializerOptions options
)

Parameters

reader  Utf8JsonReader
The reader.
typeToConvert  Type
The type to convert.
options  JsonSerializerOptions
An object that specifies serialization options to use.

Return Value

Duration
The converted value.

See Also