private static void RestoreCollection(RowHeaderColumnCollection collection, JsonData json) { if (json == null || json.IsNull) { return; } if (!json.IsArray) { throw new ArgumentException("Array JsonData expected. Received: " + json.GetJsonType()); } foreach (JsonData node in ((IEnumerable)json)) { RowHeaderColumn value = RowHeaderColumn.FromJson(node); collection.Add(value); } }
internal void RestoreFromJson(JsonData tree) { base.Clear(); RowHeaderColumnCollection.RestoreCollection(this, tree); }