Skip to main content

NodePathConverter

Namespace: Meshmakers.Octo.Communication.Contracts.DataTransferObjects

Converts a NodePath to and from JSON.

public class NodePathConverter : JsonConverter<NodePath>

Inheritance Object → JsonConverter → JsonConverter<NodePath> → NodePathConverter

Properties

HandleNull

public bool HandleNull { get; }

Property Value

Boolean

Type

public Type Type { get; }

Property Value

Type

Constructors

NodePathConverter()

public NodePathConverter()

Methods

Read(out Utf8JsonReader, Type, JsonSerializerOptions)

public NodePath Read(out Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader

typeToConvert Type

options JsonSerializerOptions

Returns

NodePath

Write(Utf8JsonWriter, NodePath, JsonSerializerOptions)

public void Write(Utf8JsonWriter writer, NodePath value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

value NodePath

options JsonSerializerOptions