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

JsonStringContract

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 JsonStringContract : JsonPrimitiveContract { [System.Runtime.CompilerServices.NullableContext(1)] [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Newtonsoft.Json relies on reflection over types that may be removed when trimming.")] public JsonStringContract(Type underlyingType) : base(underlyingType) { ContractType = JsonContractType.String; } } }