2 references to Deserialize
Microsoft.Extensions.AI (2)
ChatCompletion\DistributedCachingChatClient.cs (2)
79
return (ChatResponse?)JsonSerializer.
Deserialize
(existingJson, JsonSerializerOptions.GetTypeInfo(typeof(ChatResponse)));
93
return (IReadOnlyList<ChatResponseUpdate>?)JsonSerializer.
Deserialize
(existingJson, JsonSerializerOptions.GetTypeInfo(typeof(IReadOnlyList<ChatResponseUpdate>)));