| File: _generated\101\JsonContext.AlternatePackageMetadata.g.cs | Web Access |
| Project: src\nuget-client\src\NuGet.Core\NuGet.Protocol\NuGet.Protocol.csproj (NuGet.Protocol) |
// <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 JsonContext { private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.AlternatePackageMetadata>? _AlternatePackageMetadata; /// <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.Protocol.AlternatePackageMetadata> AlternatePackageMetadata #nullable enable annotations { get => _AlternatePackageMetadata ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.AlternatePackageMetadata>)Options.GetTypeInfo(typeof(global::NuGet.Protocol.AlternatePackageMetadata)); } private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.AlternatePackageMetadata> Create_AlternatePackageMetadata(global::System.Text.Json.JsonSerializerOptions options) { if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Protocol.AlternatePackageMetadata>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.AlternatePackageMetadata> jsonTypeInfo)) { var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Protocol.AlternatePackageMetadata> { ObjectCreator = () => new global::NuGet.Protocol.AlternatePackageMetadata(), ObjectWithParameterizedConstructorCreator = null, PropertyMetadataInitializer = _ => AlternatePackageMetadataPropInit(options), ConstructorParameterMetadataInitializer = null, ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.AlternatePackageMetadata).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), SerializeHandler = null, PolymorphismOptions = new global::System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions(), TypeClassifierFactory = null, }; jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.Protocol.AlternatePackageMetadata>(options, objectInfo); jsonTypeInfo.NumberHandling = null; } jsonTypeInfo.OriginatingResolver = this; return jsonTypeInfo; } private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] AlternatePackageMetadataPropInit(global::System.Text.Json.JsonSerializerOptions options) { var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[2]; var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string> { IsProperty = true, IsPublic = true, IsVirtual = false, DeclaringType = typeof(global::NuGet.Protocol.AlternatePackageMetadata), Converter = null, Getter = static obj => ((global::NuGet.Protocol.AlternatePackageMetadata)obj).PackageId, Setter = static (obj, value) => ((global::NuGet.Protocol.AlternatePackageMetadata)obj).PackageId = value!, IgnoreCondition = null, HasJsonInclude = true, IsExtensionData = false, NumberHandling = null, PropertyName = "PackageId", JsonPropertyName = "id", AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.AlternatePackageMetadata).GetProperty("PackageId", 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<global::NuGet.Versioning.VersionRange> { IsProperty = true, IsPublic = true, IsVirtual = false, DeclaringType = typeof(global::NuGet.Protocol.AlternatePackageMetadata), Converter = null, Getter = static obj => ((global::NuGet.Protocol.AlternatePackageMetadata)obj).Range, Setter = static (obj, value) => ((global::NuGet.Protocol.AlternatePackageMetadata)obj).Range = value!, IgnoreCondition = null, HasJsonInclude = true, IsExtensionData = false, NumberHandling = null, PropertyName = "Range", JsonPropertyName = "range", AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.AlternatePackageMetadata).GetProperty("Range", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.VersionRange), global::System.Array.Empty<global::System.Type>(), null), }; properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Versioning.VersionRange>(options, info1); return properties; } } }