SuperMap.Web.iServerJava6R.ThemeGraphText.FromJson C# (CSharp) Method

FromJson() static private method

static private FromJson ( System json ) : ThemeGraphText
json System
return ThemeGraphText
        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;
        }