using System.Reflection; using System.Text.Json.Serialization; namespace qmonlib { [Serializable] public class MonItemGeneral { [JsonPropertyName("nam")] public string Name { get; set; } [JsonPropertyName("cpt")] public string Caption { get; set; } [JsonPropertyName("dsc")] public string Description { get; set; } [JsonPropertyName("vty")] public MonViewType ViewType { get; set; } [JsonPropertyName("key")] public List KeyOrdinals { get; set; } = new List(); public List Items { get; set; } = new List(); public class ItemDescriptor { [JsonPropertyName("nme")] public string Name { get; set; } [JsonPropertyName("tnm")] public string TypeName { get; set; } [JsonPropertyName("lbl")] public string Label { get; set; } [JsonPropertyName("dsc")] public string Description { get; set; } [JsonPropertyName("ord")] public int Order { get; set; } [NonSerialized] public PropertyInfo? _propertyInfo; } public enum MonViewType { Item, List } } }