Class NodeJsonConverter
Serializes a Node to the EJ2 Diagram NodeModel JSON shape.
Inheritance
System.Object
NodeJsonConverter
Namespace: Syncfusion.Maui.Diagram
Assembly: Syncfusion.Maui.Diagram.dll
Syntax
public sealed class NodeJsonConverter : JsonConverter<Node>
Remarks
Always emits the node's full current state (not a per-field diff) — DiagramManager
coalesces bursts of property changes and re-sends the whole object once per flush, so JavaScript can
simply Object.assign this onto the existing node and re-bind.
Constructors
NodeJsonConverter()
Declaration
public NodeJsonConverter()
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Declaration
public override Node Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.Json.Utf8JsonReader | reader | |
| System.Type | typeToConvert | |
| System.Text.Json.JsonSerializerOptions | options |
Returns
| Type |
|---|
| Node |
Write(Utf8JsonWriter, Node, JsonSerializerOptions)
Declaration
public override void Write(Utf8JsonWriter writer, Node value, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.Json.Utf8JsonWriter | writer | |
| Node | value | |
| System.Text.Json.JsonSerializerOptions | options |