Class FieldParser

Version: 21.x

Handles conversion of a Field.

Inheritance

System.Object

FieldParser

Implements

IFieldParser

Namespace: Sitecore.LayoutService.Client.Json.Converter

Assembly: Sitecore.LayoutService.Client.Json.dll
Syntax
public class FieldParser : Object, IFieldParser

Constructors

FieldParser()

Declaration
public FieldParser()

Methods

ParseFields(JsonSerializerOptions, ref Utf8JsonReader)

Reads Json and converts to IFieldReader.

Declaration
public Dictionary<string, IFieldReader> ParseFields(JsonSerializerOptions options, ref Utf8JsonReader reader)
Parameters
TypeNameDescription
System.Text.Json.JsonSerializerOptionsoptionsAn object that specifies serialization options to use.
System.Text.Json.Utf8JsonReaderreaderThe reader.
Returns
TypeDescription
System.Collections.Generic.Dictionary

<

System.String

,

IFieldReader

>
Parsed fields.

Implements

IFieldParser

If you have suggestions for improving this article, let us know!