using System; using System.Collections.Generic; using System.Runtime.Serialization; using Umbraco.Core.Models.PublishedContent; namespace Umbraco.Core.Models.Blocks { /// /// The base class for any strongly typed model for a Block editor implementation /// public abstract class BlockEditorModel { protected BlockEditorModel(IEnumerable data) { Data = data ?? throw new ArgumentNullException(nameof(data)); } public BlockEditorModel() { } /// /// The data items of the Block List editor /// [DataMember(Name = "data")] public IEnumerable Data { get; set; } } }