${iServerJava6R_ThemeGraphText_Title}

${iServerJava6R_ThemeGraphText_Description}

        internal static ThemeGraphText FromJson(System.Json.JsonObject json)
        {
            if (json == null) return null;

            ThemeGraphText graphText = new ThemeGraphText();
            graphText.GraphTextDisplayed = (bool)json["graphTextDisplayed"];
            if (json["graphTextFormat"] != null)
            {
                graphText.GraphTextFormat = (ThemeGraphTextFormat)Enum.Parse(typeof(ThemeGraphTextFormat), json["graphTextFormat"], true);
            }
            else
            {
                //不处理null的情况
            }
            graphText.GraphTextStyle = ServerTextStyle.FromJson((JsonObject)json["graphTextStyle"]);
            return graphText;
        }
        internal static string ToJson(ThemeGraphText graphText)
        {
            string json = "";
            List<string> list = new List<string>();

            list.Add(string.Format("\"graphTextDisplayed\":{0}", graphText.GraphTextDisplayed.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));

            list.Add(string.Format("\"graphTextFormat\":\"{0}\"", graphText.GraphTextFormat));

            if (graphText.GraphTextStyle != null)
            {
                list.Add(string.Format("\"graphTextStyle\":{0}", ServerTextStyle.ToJson(graphText.GraphTextStyle)));
            }
            else
            {
                list.Add(string.Format("\"graphTextStyle\":{0}", ServerTextStyle.ToJson(new ServerTextStyle())));
            }
            json = string.Join(",", list.ToArray());
            return json;
        }