DurationJsonConverterRead Method
Reads and converts the JSON to type T.
Namespace: GenerativeAI.TypesAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public override Duration Read(
ref Utf8JsonReader reader,
Type typeToConvert,
JsonSerializerOptions options
)
- reader Utf8JsonReader
- The reader.
- typeToConvert Type
- The type to convert.
- options JsonSerializerOptions
- An object that specifies serialization options to use.
DurationThe converted value.