|
// <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.Tasks
{
internal partial class E2EManifestJsonContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel>? _E2EAppEntryModel;
/// <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.Tasks.E2EAppEntryModel> E2EAppEntryModel
#nullable enable annotations
{
get => _E2EAppEntryModel ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel> Create_E2EAppEntryModel(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel>
{
ObjectCreator = () => new global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel(),
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => E2EAppEntryModelPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
SerializeHandler = E2EAppEntryModelSerializeHandler,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] E2EAppEntryModelPropInit(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.Tasks.E2EAppEntryModel),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)obj).Executable,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)obj).Executable = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Executable",
JsonPropertyName = "executable",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel).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);
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)obj).Arguments,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)obj).Arguments = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Arguments",
JsonPropertyName = "arguments",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel).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);
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)obj).WorkingDirectory,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)obj).WorkingDirectory = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "WorkingDirectory",
JsonPropertyName = "workingDirectory",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel).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.Tasks.E2EAppEntryModel),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)obj).PublicUrl,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)obj).PublicUrl = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "PublicUrl",
JsonPropertyName = "publicUrl",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel).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.Tasks.E2EAppEntryModel),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)obj).EnvironmentVariables,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)obj).EnvironmentVariables = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "EnvironmentVariables",
JsonPropertyName = "environmentVariables",
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel).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);
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 E2EAppEntryModelSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel? value)
{
if (value is null)
{
writer.WriteNullValue();
return;
}
writer.WriteStartObject();
writer.WriteString(PropName_executable, ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)value).Executable);
writer.WriteString(PropName_arguments, ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)value).Arguments);
writer.WriteString(PropName_workingDirectory, ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)value).WorkingDirectory);
writer.WriteString(PropName_publicUrl, ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)value).PublicUrl);
writer.WritePropertyName(PropName_environmentVariables);
DictionaryStringStringSerializeHandler(writer, ((global::Microsoft.AspNetCore.Components.Testing.Tasks.E2EAppEntryModel)value).EnvironmentVariables);
writer.WriteEndObject();
}
}
}
|