<PackageReference Include="NJsonSchema" Version="11.3.2" />

NJsonSchema.Infrastructure.JsonSchemaSerialization

The JSON Schema serialization context holding information about the current serialization.
namespace NJsonSchema.Infrastructure { public class JsonSchemaSerialization { public static SchemaType CurrentSchemaType { get; } public static JsonSerializerSettings CurrentSerializerSettings { get; } public static bool IsWriting { get; } public static string ToJson(object obj, SchemaType schemaType, IContractResolver contractResolver, Formatting formatting); public static Task<T> FromJsonAsync<T>(string json, SchemaType schemaType, string documentPath, Func<T, JsonReferenceResolver> referenceResolverFactory, IContractResolver contractResolver); public static Task<T> FromJsonAsync<T>(string json, SchemaType schemaType, string documentPath, Func<T, JsonReferenceResolver> referenceResolverFactory, IContractResolver contractResolver, CancellationToken cancellationToken = default(CancellationToken)); public static Task<T> FromJsonAsync<T>(Stream stream, SchemaType schemaType, string documentPath, Func<T, JsonReferenceResolver> referenceResolverFactory, IContractResolver contractResolver, CancellationToken cancellationToken = default(CancellationToken)); public static T FromJson<[System.Runtime.CompilerServices.Nullable(2)] T>(string json, IContractResolver contractResolver); public static T FromJson<[System.Runtime.CompilerServices.Nullable(2)] T>(Stream stream, IContractResolver contractResolver); public JsonSchemaSerialization(); } }