<PackageReference Include="System.Text.Json" Version="8.0.0" />

JsonUnmappedMemberHandlingAttribute

When placed on a type, determines the JsonUnmappedMemberHandling configuration for the specific type, overriding the global UnmappedMemberHandling setting.
namespace System.Text.Json.Serialization { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] public class JsonUnmappedMemberHandlingAttribute : JsonAttribute { public JsonUnmappedMemberHandling UnmappedMemberHandling { get; } public JsonUnmappedMemberHandlingAttribute(JsonUnmappedMemberHandling unmappedMemberHandling) { UnmappedMemberHandling = unmappedMemberHandling; } } }