Class JsonSerializedField
Version: 21.x
Encapsulates a System.Text.Json.JsonDocument for later deserialization as a Field.
Inheritance
System.Object
JsonSerializedField
Implements
Inherited Members
FieldReader.TryRead(Type, IField)
Namespace: Sitecore.LayoutService.Client.Json.Fields
Assembly: Sitecore.LayoutService.Client.Json.dll
Syntax
Constructors
JsonSerializedField(JsonSerializerOptions, JsonDocument)
Initializes a new instance of the JsonSerializedField class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.Json.JsonSerializerOptions | options | The serializer options for later processing of the field. |
| System.Text.Json.JsonDocument | doc | The instance of System.Text.Json.JsonDocument for later deserialization. |
Methods
HandleRead(Type)
Returns an instance of the Field data as a specified type.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | type | The type to read the field as. |
Returns
| Type | Description |
|---|---|
| System.Object | A new instance of the specified type. |
Overrides
Implements
If you have suggestions for improving this article, let us know!