using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NotVisualComponent.Models { public class TableConfig : DocumentConfig { public List? Data { get; set; } public void CheckFields() { if (Data == null || Data.Count == 0 || Data.All(x => x.Length == 0)) throw new ArgumentNullException("Data is null"); } } }