Share via


AgentRunResponse.Deserialize<T>(JsonSerializerOptions) Method

Definition

Deserializes the response text into the given type using the specified serializer options.

public T Deserialize<T>(System.Text.Json.JsonSerializerOptions serializerOptions);
member this.Deserialize : System.Text.Json.JsonSerializerOptions -> 'T
Public Function Deserialize(Of T) (serializerOptions As JsonSerializerOptions) As T

Type Parameters

T

The output type to deserialize into.

Parameters

serializerOptions
JsonSerializerOptions

The JSON serialization options to use.

Returns

T

The result as the requested type.

Exceptions

The result is not parsable into the requested type.

Applies to