| 1 | using System.Text.Json; |
| 2 | using System.Text.Json.Serialization.Metadata; |
| 3 | |
| 4 | namespace AgentClientProtocol; |
| 5 | |
| 6 | internal static class JsonSerializerOptionsExtensions |
| 7 | { |
| 8 | public static JsonTypeInfo<T> GetTypeInfo<T>(this JsonSerializerOptions options) => (JsonTypeInfo<T>)options.GetTypeInfo(typeof(T)); |
| 9 | } |
View only · write via MCP/CIDE