|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace NuGet.Protocol.Utility
{
internal partial class RepositorySignatureJsonContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Packaging.Core.Fingerprints>? _Fingerprints;
/// <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::NuGet.Packaging.Core.Fingerprints> Fingerprints
#nullable enable annotations
{
get => _Fingerprints ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Packaging.Core.Fingerprints>)Options.GetTypeInfo(typeof(global::NuGet.Packaging.Core.Fingerprints));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Packaging.Core.Fingerprints> Create_Fingerprints(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Packaging.Core.Fingerprints>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Packaging.Core.Fingerprints> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Packaging.Core.Fingerprints>
{
ObjectCreator = null,
ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Packaging.Core.Fingerprints((global::System.Collections.Generic.IDictionary<string, string>)args[0]),
PropertyMetadataInitializer = _ => FingerprintsPropInit(options),
ConstructorParameterMetadataInitializer = FingerprintsCtorParamInit,
ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Core.Fingerprints).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::System.Collections.Generic.IDictionary<string, string>)}, modifiers: null),
SerializeHandler = null,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.Packaging.Core.Fingerprints>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] FingerprintsPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[0];
return properties;
}
private static global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[] FingerprintsCtorParamInit() => new global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[]
{
new()
{
Name = "fingerPrints",
ParameterType = typeof(global::System.Collections.Generic.IDictionary<string, string>),
Position = 0,
HasDefaultValue = false,
DefaultValue = null,
IsNullable = false,
},
};
}
}
|