Class JsonLayoutServiceSerializer
Version: 21.x
Contract that supports serialization for the Sitecore layout service.
Inheritance
System.Object
JsonLayoutServiceSerializer
Implements
Namespace: Sitecore.LayoutService.Client.Json
Assembly: Sitecore.LayoutService.Client.Json.dll
Syntax
RequestResponse
public class JsonLayoutServiceSerializer : Object, ISitecoreLayoutSerializerConstructors
JsonLayoutServiceSerializer(IEnumerable<JsonConverter>)
Initializes a new instance of the JsonLayoutServiceSerializer class.
Declaration
RequestResponse
public JsonLayoutServiceSerializer(IEnumerable<JsonConverter> converters)Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Text.Json.Serialization.JsonConverter> | converters |
List of System.Text.Json.Serialization.JsonConverter`1. |
Methods
Deserialize(String)
Deserializes the given data to a SitecoreLayoutResponseContent.
Declaration
RequestResponse
public SitecoreLayoutResponseContent Deserialize(string data)Parameters
| Type | Name | Description |
|---|---|---|
| System.String | data |
The data to deserialize. |
Returns
| Type | Description |
|---|---|
| SitecoreLayoutResponseContent |
The deserialized SitecoreLayoutResponseContent. |