Search Results for

    Show / Hide Table of Contents
    View Source

    Class JsonBlockValueConverter

    JSON converter for block values, because block value layouts are strongly typed but different from implementation to implementation.

    Inheritance
    System.Object
    System.Text.Json.Serialization.JsonConverter
    System.Text.Json.Serialization.JsonConverter<BlockValue>
    Namespace: Umbraco.Cms.Infrastructure.Serialization
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class JsonBlockValueConverter : JsonConverter<BlockValue>

    Methods

    View Source

    CanConvert(Type)

    Declaration
    public override bool CanConvert(Type typeToConvert)
    Parameters
    Type Name Description
    Type typeToConvert
    Returns
    Type Description
    System.Boolean
    View Source

    Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

    Declaration
    public override BlockValue Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
    Parameters
    Type Name Description
    System.Text.Json.Utf8JsonReader reader
    Type typeToConvert
    System.Text.Json.JsonSerializerOptions options
    Returns
    Type Description
    BlockValue
    View Source

    Write(Utf8JsonWriter, BlockValue, JsonSerializerOptions)

    Declaration
    public override void Write(Utf8JsonWriter writer, BlockValue value, JsonSerializerOptions options)
    Parameters
    Type Name Description
    System.Text.Json.Utf8JsonWriter writer
    BlockValue value
    System.Text.Json.JsonSerializerOptions options
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • CanConvert(Type)
      • Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
      • Write(Utf8JsonWriter, BlockValue, JsonSerializerOptions)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX