Editor/Document/Payloads/FieldPayload.cs

A small record type in the editor project that represents a payload for a field control. It inherits from Payload and sets the Kind to ControlType.Field while marking it to be ignored by JSON serialization.

using System.Text.Json.Serialization;

namespace Grains.RazorDesigner.Document;

public sealed record FieldPayload : Payload
{
    [JsonIgnore]
    public override ControlType Kind => ControlType.Field;
}