File: E2EManifestJsonContext.E2EAppEntry.g.cs
Project: src\src\Components\Testing\src\Microsoft.AspNetCore.Components.Testing.csproj (Microsoft.AspNetCore.Components.Testing)
// <auto-generated/>
 
#nullable enable annotations
#nullable disable warnings
 
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
 
namespace Microsoft.AspNetCore.Components.Testing.Infrastructure
{
    internal partial class E2EManifestJsonContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>? _E2EAppEntry;
        
        /// <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.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry> E2EAppEntry
        #nullable enable annotations
        {
            get => _E2EAppEntry ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry> Create_E2EAppEntry(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry> jsonTypeInfo))
            {
                var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>
                {
                    ObjectCreator = () => new global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry(),
                    ObjectWithParameterizedConstructorCreator = null,
                    PropertyMetadataInitializer = _ => E2EAppEntryPropInit(options),
                    ConstructorParameterMetadataInitializer = null,
                    ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
                    SerializeHandler = E2EAppEntrySerializeHandler,
                };
                
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>(options, objectInfo);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }
 
        private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] E2EAppEntryPropInit(global::System.Text.Json.JsonSerializerOptions options)
        {
            var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[5];
 
            var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)obj).Executable,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)obj).Executable = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Executable",
                JsonPropertyName = "executable",
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry).GetProperty("Executable", 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.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)obj).Arguments,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)obj).Arguments = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Arguments",
                JsonPropertyName = "arguments",
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry).GetProperty("Arguments", 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<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)obj).WorkingDirectory,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)obj).WorkingDirectory = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "WorkingDirectory",
                JsonPropertyName = "workingDirectory",
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry).GetProperty("WorkingDirectory", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info2);
 
            var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)obj).PublicUrl,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)obj).PublicUrl = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "PublicUrl",
                JsonPropertyName = "publicUrl",
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry).GetProperty("PublicUrl", 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::System.Collections.Generic.Dictionary<string, string>>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)obj).EnvironmentVariables,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)obj).EnvironmentVariables = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "EnvironmentVariables",
                JsonPropertyName = "environmentVariables",
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info4);
            properties[4].IsGetNullable = false;
            properties[4].IsSetNullable = false;
 
            return properties;
        }
 
        // Intentionally not a static method because we create a delegate to it. Invoking delegates to instance
        // methods is almost as fast as virtual calls. Static methods need to go through a shuffle thunk.
        private void E2EAppEntrySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry? value)
        {
            if (value is null)
            {
                writer.WriteNullValue();
                return;
            }
            
            writer.WriteStartObject();
 
            writer.WriteString(PropName_executable, ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)value).Executable);
            writer.WriteString(PropName_arguments, ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)value).Arguments);
            writer.WriteString(PropName_workingDirectory, ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)value).WorkingDirectory);
            writer.WriteString(PropName_publicUrl, ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)value).PublicUrl);
            writer.WritePropertyName(PropName_environmentVariables);
            DictionaryStringStringSerializeHandler(writer, ((global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry)value).EnvironmentVariables);
 
            writer.WriteEndObject();
        }
    }
}