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