public override void FromJson(string data) { HSLData d = JsonConvert.DeserializeObject <HSLData>(data); SetBaseNodeDate(d); hue = d.hue; saturation = d.saturation; lightness = d.lightness; }
public override string GetJson() { HSLData d = new HSLData(); FillBaseNodeData(d); d.hue = hue; d.saturation = saturation; d.lightness = lightness; return(JsonConvert.SerializeObject(d)); }