Editor/Document/Payloads/DropDownPayload.cs

A small record type used in the editor document model that represents a drop-down control payload. It derives from Payload and sets its Kind to ControlType.DropDown while marking the property to be ignored by JSON serialization.

using System.Text.Json.Serialization;

namespace Grains.RazorDesigner.Document;

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