Editor/Document/Payloads/ImagePayload.cs

A record type representing an image payload for the RazorDesigner document editor. It sets the control kind to Image and provides a Source property for the image asset path, defaulting to an empty string.

using System.Text.Json.Serialization;

namespace Grains.RazorDesigner.Document;

public sealed record ImagePayload : Payload
{
    [JsonIgnore]
    public override ControlType Kind => ControlType.Image;

    // Image asset path (asset.RelativePath). Overrides Payload.Source (neutral default "").
    public override string Source { get; init; } = "";
}