| File: Generated\361d1da7f942c932\CustomAIContentJsonContext.GetJsonTypeInfo.g.cs | |
| Project: ..\..\..\test\Libraries\Microsoft.Extensions.AI.Tests\Microsoft.Extensions.AI.Tests.csproj (Microsoft.Extensions.AI.Tests) |
// <auto-generated/> #nullable enable annotations #nullable disable warnings // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0612, CS0618 namespace Microsoft.Extensions.AI { internal sealed partial class CustomAIContentJsonContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver { /// <inheritdoc/> public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) { Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); return typeInfo; } global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options) { if (type == typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary)) { return Create_AdditionalPropertiesDictionary(options); } if (type == typeof(global::Microsoft.Extensions.AI.AIAnnotation)) { return Create_AIAnnotation(options); } if (type == typeof(global::Microsoft.Extensions.AI.AnnotatedRegion)) { return Create_AnnotatedRegion(options); } if (type == typeof(global::Microsoft.Extensions.AI.CitationAnnotation)) { return Create_CitationAnnotation(options); } if (type == typeof(global::Microsoft.Extensions.AI.DistributedCachingChatClientTest.CustomAIContent1)) { return Create_CustomAIContent1(options); } if (type == typeof(global::Microsoft.Extensions.AI.DistributedCachingChatClientTest.CustomAIContent2)) { return Create_CustomAIContent2(options); } if (type == typeof(global::Microsoft.Extensions.AI.TextSpanAnnotatedRegion)) { return Create_TextSpanAnnotatedRegion(options); } if (type == typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIAnnotation>)) { return Create_IListAIAnnotation(options); } if (type == typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AnnotatedRegion>)) { return Create_IListAnnotatedRegion(options); } if (type == typeof(global::System.DateTime)) { return Create_DateTime(options); } if (type == typeof(global::System.Uri)) { return Create_Uri(options); } if (type == typeof(int)) { return Create_Int32(options); } if (type == typeof(int?)) { return Create_NullableInt32(options); } if (type == typeof(object)) { return Create_Object(options); } if (type == typeof(string)) { return Create_String(options); } return null; } } }