using Newtonsoft.Json; namespace IronIntel.Contractor.Site { public class GridData { [JsonProperty("columns")] public GridColumnDefinition[] Columns { get; set; } [JsonProperty("source")] public T[] Source { get; set; } [JsonProperty("rowHeight")] public double RowHeight { get; set; } [JsonProperty("sortKey")] public string SortKey { get; set; } [JsonProperty("sortArray")] public GridColumnSortDefinition[] SortArray { get; set; } } public class GridColumnDefinition { [JsonProperty("key")] public string Key { get; set; } [JsonProperty("type")] public string Type { get; set; } [JsonProperty("caption")] public string Caption { get; set; } [JsonProperty("width")] public double Width { get; set; } [JsonProperty("align")] public string Align { get; set; } [JsonProperty("visible")] public bool Visible { get; set; } } public class GridColumnSortDefinition { [JsonProperty("column")] public string Column { get; set; } [JsonProperty("order")] public string Order { get; set; } } }