Class FieldParser
Version: 21.x
Handles conversion of a Field.
Inheritance
System.Object
FieldParser
Implements
Namespace: Sitecore.LayoutService.Client.Json.Converter
Assembly: Sitecore.LayoutService.Client.Json.dll
Syntax
RequestResponse
public class FieldParser : Object, IFieldParserConstructors
FieldParser()
Declaration
RequestResponse
public FieldParser()Methods
ParseFields(JsonSerializerOptions, ref Utf8JsonReader)
Reads Json and converts to IFieldReader.
Declaration
RequestResponse
public Dictionary<string, IFieldReader> ParseFields(JsonSerializerOptions options, ref Utf8JsonReader reader)Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.Json.JsonSerializerOptions | options |
An object that specifies serialization options to use. |
| System.Text.Json.Utf8JsonReader | reader |
The reader. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, IFieldReader> |
Parsed fields. |