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

FromJson() static private method

static private FromJson ( System.Json.JsonObject json ) : ThemeGraphItem
json System.Json.JsonObject
return ThemeGraphItem
        internal static ThemeGraphItem FromJson(JsonObject json)
        {
            if (json == null) return null;
            ThemeGraphItem graphItem = new ThemeGraphItem();
            graphItem.Caption = (string)json["caption"];
            graphItem.GraphExpression = (string)json["graphExpression"];
            if (json["memoryDoubleValues"] != null)
            {
                List<double> memoryValues = new List<double>();
                foreach (JsonObject item in (JsonArray)json["memoryDoubleValues"])
                {
                    memoryValues.Add((double)item);
                }

                graphItem.MemoryDoubleValues = memoryValues;
            }

            graphItem.UniformStyle = ServerStyle.FromJson((JsonObject)json["uniformStyle"]);
            return graphItem;
        }