${REST_ThemeGraphAxes_Title}
${REST_ThemeGraphAxes_Description}
internal static string ToJson(ThemeGraphAxes graphAxes) { string json = ""; List<string> list = new List<string>(); if (graphAxes.AxesColor != null) { list.Add(string.Format("\"axesColor\":{0}", ServerColor.ToJson(graphAxes.AxesColor))); } else { list.Add(string.Format("\"axesColor\":{0}", ServerColor.ToJson(new ServerColor()))); } list.Add(string.Format("\"axesDisplayed\":{0}", graphAxes.AxesDisplayed.ToString().ToLower())); list.Add(string.Format("\"axesGridDisplayed\":{0}", graphAxes.AxesGridDisplayed.ToString().ToLower())); list.Add(string.Format("\"axesTextDisplayed\":{0}", graphAxes.AxesTextDisplayed.ToString().ToLower())); if (graphAxes.AxesTextStyle != null) { list.Add(string.Format("\"axesTextStyle\":{0}", ServerTextStyle.ToJson(graphAxes.AxesTextStyle))); } else { list.Add(string.Format("\"axesTextStyle\":{0}", ServerTextStyle.ToJson(new ServerTextStyle()))); } json = string.Join(",", list.ToArray()); return json; }
internal static ThemeGraphAxes FromJson(JsonObject json) { if (json == null) return null; ThemeGraphAxes graphAxes = new ThemeGraphAxes(); graphAxes.AxesColor = ServerColor.FromJson(json["axesColor"].GetObjectEx()); graphAxes.AxesDisplayed = json["axesDisplayed"].GetBooleanEx(); graphAxes.AxesGridDisplayed = json["axesGridDisplayed"].GetBooleanEx(); graphAxes.AxesTextDisplayed = json["axesTextDisplayed"].GetBooleanEx(); graphAxes.AxesTextStyle = ServerTextStyle.FromJson(json["axesTextStyle"].GetObjectEx()); return graphAxes; }