Editor/Document/Payloads/PanelPayload.cs

A small record type in the editor assembly representing a payload for a Panel control in a Razor designer document. It inherits from Payload and overrides the Kind property to indicate ControlType.Panel, with JsonIgnore attribute so Kind is not serialized.

using System.Text.Json.Serialization;

namespace Grains.RazorDesigner.Document;

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