Class DeviceJsonConverter
Version: 21.x
Handles conversion of a presentation device list.
Inheritance
System.Object
DeviceJsonConverter
Namespace: Sitecore.LayoutService.Client.Newtonsoft.Converters
Assembly: Sitecore.LayoutService.Client.Newtonsoft.dll
Syntax
Constructors
DeviceJsonConverter()
Declaration
Properties
CanWrite
Declaration
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
ReadJson(JsonReader, Type, List<Device>, Boolean, JsonSerializer)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Newtonsoft.Json.JsonReader | reader | |
| System.Type | objectType | |
| System.Collections.Generic.List<Device> | existingValue | |
| System.Boolean | hasExistingValue | |
| Newtonsoft.Json.JsonSerializer | serializer |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<Device> |
WriteJson(JsonWriter, List<Device>, JsonSerializer)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Newtonsoft.Json.JsonWriter | writer | |
| System.Collections.Generic.List<Device> | value | |
| Newtonsoft.Json.JsonSerializer | serializer |