public override void Deserialize(Dictionary <string, object> data) { base.Deserialize(data); foreach (Dictionary <string, object> data1 in data["y_unit"] as object[]) { TimelineUnit unit = new TimelineUnit((object)"1", (object)"1", true); unit.Deserialize(data1); this.AddOption(unit); } }
public void Deserialize(Dictionary <string, object> data) { this.key = (object)data["key"].ToString(); this.label = (object)data["label"].ToString(); this.elements.Clear(); if (!data.ContainsKey("children")) { return; } foreach (Dictionary <string, object> data1 in data["children"] as object[]) { TimelineUnit unit = new TimelineUnit((object)"1", (object)"1", false); unit.Deserialize(data1); this.AddOption(unit); } }