File: Model\PackageDeprecationMetadata.cs
Web Access
Project: src\src\nuget-client\src\NuGet.Core\NuGet.Protocol\NuGet.Protocol.csproj (NuGet.Protocol)
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace NuGet.Protocol
{
    public class PackageDeprecationMetadata
    {
        [JsonProperty(PropertyName = JsonProperties.DeprecationMessage)]
        public string? Message { get; internal set; }

        [JsonProperty(PropertyName = JsonProperties.DeprecationReasons)]
        public IEnumerable<string> Reasons { get; internal set; } = Array.Empty<string>();

        [JsonProperty(PropertyName = JsonProperties.AlternatePackage)]
        public AlternatePackageMetadata? AlternatePackage { get; internal set; }
    }
}