JsonBlockToObjectT Method
Deserializes the JSON data of the current instance into an object of type T.
Namespace: GenerativeAI.CoreAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public T ToObject<T>()
where T : class
- T
- The target type to which the JSON data will be deserialized. Must be a class.
TAn instance of type
T if deserialization is successful, or null if an error occurs.