|
// <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.StaticWebAssets.Tasks
{
public partial class StaticWebAssetsJsonSerializerContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint>? _StaticWebAssetEndpoint;
/// <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.StaticWebAssets.Tasks.StaticWebAssetEndpoint> StaticWebAssetEndpoint
#nullable enable annotations
{
get => _StaticWebAssetEndpoint ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint> Create_StaticWebAssetEndpoint(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint>
{
ObjectCreator = () => new global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint(),
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => StaticWebAssetEndpointPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
SerializeHandler = StaticWebAssetEndpointSerializeHandler,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] StaticWebAssetEndpointPropInit(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.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).Route,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).Route = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Route",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("Route", 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.StaticWebAssets.Tasks.StaticWebAssetEndpoint),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).Order,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).Order = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Order",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("Order", 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.StaticWebAssets.Tasks.StaticWebAssetEndpoint),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).AssetFile,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).AssetFile = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "AssetFile",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("AssetFile", 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<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointSelector[]>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).Selectors,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).Selectors = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Selectors",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("Selectors", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointSelector[]), global::System.Array.Empty<global::System.Type>(), null),
};
properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointSelector[]>(options, info3);
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointResponseHeader[]>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).ResponseHeaders,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).ResponseHeaders = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ResponseHeaders",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("ResponseHeaders", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointResponseHeader[]), global::System.Array.Empty<global::System.Type>(), null),
};
properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointResponseHeader[]>(options, info4);
var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint),
Converter = null,
Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).EndpointProperties,
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).EndpointProperties = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "EndpointProperties",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("EndpointProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]), global::System.Array.Empty<global::System.Type>(), null),
};
properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]>(options, info5);
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 StaticWebAssetEndpointSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint? value)
{
if (value is null)
{
writer.WriteNullValue();
return;
}
writer.WriteStartObject();
writer.WriteString(PropName_Route, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)value).Route);
string __value_Order = ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)value).Order;
if (__value_Order is not null)
{
writer.WriteString(PropName_Order, __value_Order);
}
writer.WriteString(PropName_AssetFile, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)value).AssetFile);
writer.WritePropertyName(PropName_Selectors);
StaticWebAssetEndpointSelectorArraySerializeHandler(writer, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)value).Selectors);
writer.WritePropertyName(PropName_ResponseHeaders);
StaticWebAssetEndpointResponseHeaderArraySerializeHandler(writer, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)value).ResponseHeaders);
writer.WritePropertyName(PropName_EndpointProperties);
StaticWebAssetEndpointPropertyArraySerializeHandler(writer, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)value).EndpointProperties);
writer.WriteEndObject();
}
}
}
|