ApiBaseDeserializeT(HttpResponseMessage) Method

Deserializes a JSON string into an object of the specified type.

Definition

Namespace: GenerativeAI.Core
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
protected Task<T> Deserialize<T>(
	HttpResponseMessage response
)

Parameters

response  HttpResponseMessage

[Missing <param name="response"/> documentation for "M:GenerativeAI.Core.ApiBase.Deserialize``1(System.Net.Http.HttpResponseMessage)"]

Type Parameters

T
The type of object to deserialize into.

Return Value

TaskT
The deserialized object of type T, or null if deserialization fails.

See Also