// <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.Evaluation.Reporting.JsonSerialization { internal static partial class JsonUtilities { private sealed partial class JsonContext { private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric>? _EvaluationMetric; /// <summary> /// Defines the source generated JSON serialization contract metadata for a given type. /// </summary> #nullable disable annotations // Marking the property type as nullable-oblivious. public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric> EvaluationMetric #nullable enable annotations { get => _EvaluationMetric ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)); } private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric> Create_EvaluationMetric(global::System.Text.Json.JsonSerializerOptions options) { if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric> jsonTypeInfo)) { var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric> { ObjectCreator = null, ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric((string)args[0], (string)args[1]), PropertyMetadataInitializer = _ => EvaluationMetricPropInit(options), ConstructorParameterMetadataInitializer = EvaluationMetricCtorParamInit, ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string)}, modifiers: null), SerializeHandler = null, }; jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric>(options, objectInfo); jsonTypeInfo.NumberHandling = null; } jsonTypeInfo.OriginatingResolver = this; return jsonTypeInfo; } private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] EvaluationMetricPropInit(global::System.Text.Json.JsonSerializerOptions options) { var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[6]; var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string> { IsProperty = true, IsPublic = true, IsVirtual = false, DeclaringType = typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric), Converter = null, Getter = static obj => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Name, Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Name = value!, IgnoreCondition = null, HasJsonInclude = false, IsExtensionData = false, NumberHandling = null, PropertyName = "Name", JsonPropertyName = null, AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), }; properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info0); properties[0].IsGetNullable = false; properties[0].IsSetNullable = false; var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string> { IsProperty = true, IsPublic = true, IsVirtual = false, DeclaringType = typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric), Converter = null, Getter = static obj => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Reason, Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Reason = value!, IgnoreCondition = null, HasJsonInclude = false, IsExtensionData = false, NumberHandling = null, PropertyName = "Reason", JsonPropertyName = null, AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric).GetProperty("Reason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), }; properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info1); var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.Extensions.AI.Evaluation.EvaluationMetricInterpretation> { IsProperty = true, IsPublic = true, IsVirtual = false, DeclaringType = typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric), Converter = null, Getter = static obj => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Interpretation, Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Interpretation = value!, IgnoreCondition = null, HasJsonInclude = false, IsExtensionData = false, NumberHandling = null, PropertyName = "Interpretation", JsonPropertyName = null, AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric).GetProperty("Interpretation", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetricInterpretation), global::System.Array.Empty<global::System.Type>(), null), }; properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.Extensions.AI.Evaluation.EvaluationMetricInterpretation>(options, info2); var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IDictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationContext>> { IsProperty = true, IsPublic = true, IsVirtual = false, DeclaringType = typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric), Converter = null, Getter = static obj => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Context, Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Context = value!, IgnoreCondition = null, HasJsonInclude = false, IsExtensionData = false, NumberHandling = null, PropertyName = "Context", JsonPropertyName = null, AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric).GetProperty("Context", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationContext>), global::System.Array.Empty<global::System.Type>(), null), }; properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IDictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationContext>>(options, info3); var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.Evaluation.EvaluationDiagnostic>> { IsProperty = true, IsPublic = true, IsVirtual = false, DeclaringType = typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric), Converter = null, Getter = static obj => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Diagnostics, Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Diagnostics = value!, IgnoreCondition = null, HasJsonInclude = false, IsExtensionData = false, NumberHandling = null, PropertyName = "Diagnostics", JsonPropertyName = null, AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric).GetProperty("Diagnostics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.Evaluation.EvaluationDiagnostic>), global::System.Array.Empty<global::System.Type>(), null), }; properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.Evaluation.EvaluationDiagnostic>>(options, info4); var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IDictionary<string, string>> { IsProperty = true, IsPublic = true, IsVirtual = false, DeclaringType = typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric), Converter = null, Getter = static obj => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Metadata, Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric)obj).Metadata = value!, IgnoreCondition = null, HasJsonInclude = false, IsExtensionData = false, NumberHandling = null, PropertyName = "Metadata", JsonPropertyName = null, AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric).GetProperty("Metadata", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), }; properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IDictionary<string, string>>(options, info5); return properties; } private static global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[] EvaluationMetricCtorParamInit() => new global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[] { new() { Name = "name", ParameterType = typeof(string), Position = 0, HasDefaultValue = false, DefaultValue = null, IsNullable = false, }, new() { Name = "reason", ParameterType = typeof(string), Position = 1, HasDefaultValue = true, DefaultValue = default(string), IsNullable = true, }, }; } } }