public override void FromJson(Dictionary <string, Node> nodes, string data) { BitmapNodeData d = JsonConvert.DeserializeObject <BitmapNodeData>(data); SetBaseNodeDate(d); path = d.path; Resource = d.resource; relativePath = d.relativePath; }
public override string GetJson() { BitmapNodeData d = new BitmapNodeData(); FillBaseNodeData(d); d.path = Path; d.relativePath = relativePath; d.resource = Resource; return(JsonConvert.SerializeObject(d)); }