<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />

JsonISerializableContract

Contract details for a Type used by the JsonSerializer.
using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; namespace Newtonsoft.Json.Serialization { public class JsonISerializableContract : JsonContainerContract { [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] [field: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] public ObjectConstructor<object> ISerializableCreator { [return: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] get; [param: System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] set; } [System.Runtime.CompilerServices.NullableContext(1)] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Newtonsoft.Json relies on reflection over types that may be removed when trimming.")] [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Newtonsoft.Json relies on dynamically creating types that may not be available with Ahead of Time compilation.")] public JsonISerializableContract(Type underlyingType) : base(underlyingType) { ContractType = JsonContractType.Serializable; } } }