// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Microsoft.DotNet.HotReload
{
internal sealed partial class StaticWebAssetsManifest
{
private sealed partial class StaticWebAssetsManifestJsonContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson>? _ChildAssetJson;
/// <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.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson> ChildAssetJson
#nullable enable annotations
{
get => _ChildAssetJson ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson>)Options.GetTypeInfo(typeof(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson> Create_ChildAssetJson(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson>
{
ObjectCreator = () => new global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson(),
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => ChildAssetJsonPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
SerializeHandler = ChildAssetJsonSerializeHandler,
PolymorphismOptions = new global::System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions(),
TypeClassifierFactory = null,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] ChildAssetJsonPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[3];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson)obj).Children,
Setter = static (obj, value) => __set_ChildAssetJson_Children((global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Children",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson).GetProperty("Children", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson>>(options, info0);
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.AssetInfoJson>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson)obj).Asset,
Setter = static (obj, value) => __set_ChildAssetJson_Asset((global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Asset",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson).GetProperty("Asset", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.AssetInfoJson), global::System.Array.Empty<global::System.Type>(), null),
};
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.AssetInfoJson>(options, info1);
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.PatternJson>>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson),
Converter = null,
Getter = static obj => ((global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson)obj).Patterns,
Setter = static (obj, value) => __set_ChildAssetJson_Patterns((global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson)obj, value!),
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "Patterns",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson).GetProperty("Patterns", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.PatternJson>), global::System.Array.Empty<global::System.Type>(), null),
};
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.PatternJson>>(options, info2);
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 ChildAssetJsonSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson? value)
{
if (value is null)
{
writer.WriteNullValue();
return;
}
writer.WriteStartObject();
writer.WritePropertyName(PropName_Children);
DictionaryStringChildAssetJsonSerializeHandler(writer, ((global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson)value).Children);
writer.WritePropertyName(PropName_Asset);
AssetInfoJsonSerializeHandler(writer, ((global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson)value).Asset);
writer.WritePropertyName(PropName_Patterns);
ListPatternJsonSerializeHandler(writer, ((global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson)value).Patterns);
writer.WriteEndObject();
}
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_Children")]
private static extern void __set_ChildAssetJson_Children(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson> value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_Asset")]
private static extern void __set_ChildAssetJson_Asset(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson obj, global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.AssetInfoJson value);
[global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_Patterns")]
private static extern void __set_ChildAssetJson_Patterns(global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.ChildAssetJson obj, global::System.Collections.Generic.List<global::Microsoft.DotNet.HotReload.StaticWebAssetsManifest.PatternJson> value);
}
}
}