Table of Contents

Class JsonLayoutServiceSerializer

Namespace
Sitecore.AspNetCore.SDK.LayoutService.Client.Serialization
Assembly
Sitecore.AspNetCore.SDK.LayoutService.Client.dll

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

public class JsonLayoutServiceSerializer : ISitecoreLayoutSerializer
Inheritance
JsonLayoutServiceSerializer
Implements
Inherited Members

Constructors

JsonLayoutServiceSerializer()

Initializes a new instance of the JsonLayoutServiceSerializer class.

public JsonLayoutServiceSerializer()

JsonLayoutServiceSerializer(JsonSerializerOptions)

Initializes a new instance of the JsonLayoutServiceSerializer class.

public JsonLayoutServiceSerializer(JsonSerializerOptions options)

Parameters

options JsonSerializerOptions

The JsonSerializerOptions to use.

Methods

Deserialize(string)

Deserializes the given data to a SitecoreLayoutResponseContent.

public SitecoreLayoutResponseContent? Deserialize(string data)

Parameters

data string

The data to deserialize.

Returns

SitecoreLayoutResponseContent

The deserialized SitecoreLayoutResponseContent.

GetDefaultSerializerOptions()

Gets the default JsonSerializerOptions used.

public static JsonSerializerOptions GetDefaultSerializerOptions()

Returns

JsonSerializerOptions

The default JsonSerializerOptions instance.