File: OtlpJsonSerializerContext.OtlpLogRecordJson.g.cs
Project: src\src\Aspire.Dashboard\Aspire.Dashboard.csproj (Aspire.Dashboard)
// <auto-generated/>
 
#nullable enable annotations
#nullable disable warnings
 
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
 
namespace Aspire.Dashboard.Otlp.Model.Serialization
{
    internal sealed partial class OtlpJsonSerializerContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson>? _OtlpLogRecordJson;
        
        /// <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::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson> OtlpLogRecordJson
        #nullable enable annotations
        {
            get => _OtlpLogRecordJson ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson>)Options.GetTypeInfo(typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson> Create_OtlpLogRecordJson(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson> jsonTypeInfo))
            {
                var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson>
                {
                    ObjectCreator = () => new global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson(),
                    ObjectWithParameterizedConstructorCreator = null,
                    PropertyMetadataInitializer = _ => OtlpLogRecordJsonPropInit(options),
                    ConstructorParameterMetadataInitializer = null,
                    ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
                    SerializeHandler = null,
                };
                
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson>(options, objectInfo);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }
 
        private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] OtlpLogRecordJsonPropInit(global::System.Text.Json.JsonSerializerOptions options)
        {
            var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[11];
 
            var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<ulong?>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).TimeUnixNano,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).TimeUnixNano = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | global::System.Text.Json.Serialization.JsonNumberHandling.WriteAsString,
                PropertyName = "TimeUnixNano",
                JsonPropertyName = "timeUnixNano",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("TimeUnixNano", InstanceMemberBindingFlags, null, typeof(ulong?), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<ulong?>(options, info0);
 
            var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<ulong?>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).ObservedTimeUnixNano,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).ObservedTimeUnixNano = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | global::System.Text.Json.Serialization.JsonNumberHandling.WriteAsString,
                PropertyName = "ObservedTimeUnixNano",
                JsonPropertyName = "observedTimeUnixNano",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("ObservedTimeUnixNano", InstanceMemberBindingFlags, null, typeof(ulong?), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<ulong?>(options, info1);
 
            var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int?>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).SeverityNumber,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).SeverityNumber = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "SeverityNumber",
                JsonPropertyName = "severityNumber",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("SeverityNumber", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int?>(options, info2);
 
            var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).SeverityText,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).SeverityText = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "SeverityText",
                JsonPropertyName = "severityText",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("SeverityText", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info3);
 
            var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpAnyValueJson>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).Body,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).Body = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Body",
                JsonPropertyName = "body",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("Body", InstanceMemberBindingFlags, null, typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpAnyValueJson), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpAnyValueJson>(options, info4);
 
            var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson[]>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).Attributes,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).Attributes = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Attributes",
                JsonPropertyName = "attributes",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("Attributes", InstanceMemberBindingFlags, null, typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson[]), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson[]>(options, info5);
 
            var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<uint>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).DroppedAttributesCount,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).DroppedAttributesCount = value!,
                IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "DroppedAttributesCount",
                JsonPropertyName = "droppedAttributesCount",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("DroppedAttributesCount", InstanceMemberBindingFlags, null, typeof(uint), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<uint>(options, info6);
 
            var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<uint>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).Flags,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).Flags = value!,
                IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Flags",
                JsonPropertyName = "flags",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("Flags", InstanceMemberBindingFlags, null, typeof(uint), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<uint>(options, info7);
 
            var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).TraceId,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).TraceId = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "TraceId",
                JsonPropertyName = "traceId",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("TraceId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info8);
 
            var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).SpanId,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).SpanId = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "SpanId",
                JsonPropertyName = "spanId",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("SpanId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info9);
 
            var info10 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson),
                Converter = null,
                Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).EventName,
                Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson)obj).EventName = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "EventName",
                JsonPropertyName = "eventName",
                AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson).GetProperty("EventName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[10] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info10);
 
            return properties;
        }
    }
}