File: JsonSourceGenerationContext.EnvironmentCheckResult.g.cs
Project: src\src\Aspire.Cli\Aspire.Cli.Tool.csproj (aspire)
// <auto-generated/>
 
#nullable enable annotations
#nullable disable warnings
 
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
 
namespace Aspire.Cli
{
    internal partial class JsonSourceGenerationContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>? _EnvironmentCheckResult;
        
        /// <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.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult> EnvironmentCheckResult
        #nullable enable annotations
        {
            get => _EnvironmentCheckResult ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult> Create_EnvironmentCheckResult(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult> jsonTypeInfo))
            {
                var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>
                {
                    ObjectCreator = null,
                    ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult(){ Category = (string)args[0], Name = (string)args[1], Status = (global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckStatus)args[2], Message = (string)args[3], Fix = (string)args[4], Link = (string)args[5], Details = (string)args[6] },
                    PropertyMetadataInitializer = _ => EnvironmentCheckResultPropInit(options),
                    ConstructorParameterMetadataInitializer = EnvironmentCheckResultCtorParamInit,
                    ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).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.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>(options, objectInfo);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }
 
        private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] EnvironmentCheckResultPropInit(global::System.Text.Json.JsonSerializerOptions options)
        {
            var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[7];
 
            var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Category,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Category",
                JsonPropertyName = "category",
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Category", 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::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Name,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Name",
                JsonPropertyName = "name",
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Name", 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);
            properties[1].IsGetNullable = false;
            properties[1].IsSetNullable = false;
 
            var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckStatus>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult),
                Converter = (global::System.Text.Json.Serialization.JsonConverter<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckStatus>)ExpandConverter(typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckStatus), new global::Aspire.Cli.Utils.EnvironmentChecker.LowercaseEnumConverter(), options),
                Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Status,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Status",
                JsonPropertyName = "status",
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckStatus), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckStatus>(options, info2);
 
            var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Message,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Message",
                JsonPropertyName = "message",
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Message", 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);
            properties[3].IsGetNullable = false;
            properties[3].IsSetNullable = false;
 
            var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Fix,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Fix",
                JsonPropertyName = "fix",
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Fix", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info4);
 
            var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Link,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Link",
                JsonPropertyName = "link",
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Link", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info5);
 
            var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Details,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Details",
                JsonPropertyName = "details",
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info6);
 
            return properties;
        }
 
        private static global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[] EnvironmentCheckResultCtorParamInit() => new global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[]
        {
            new()
            {
                Name = "Category",
                ParameterType = typeof(string),
                Position = 0,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Name",
                ParameterType = typeof(string),
                Position = 1,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Status",
                ParameterType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckStatus),
                Position = 2,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Message",
                ParameterType = typeof(string),
                Position = 3,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Fix",
                ParameterType = typeof(string),
                Position = 4,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Link",
                ParameterType = typeof(string),
                Position = 5,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Details",
                ParameterType = typeof(string),
                Position = 6,
                IsNullable = true,
                IsMemberInitializer = true,
            },
        };
    }
}