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

FromJson() static private method

static private FromJson ( System.Json.JsonObject json ) : ThemeGridRangeItem
json System.Json.JsonObject
return ThemeGridRangeItem
        internal static ThemeGridRangeItem FromJson(JsonObject json)
        {
            if (json == null) return null;
            ThemeGridRangeItem item = new ThemeGridRangeItem();

            item.Caption = json["caption"];
            item.End = (double)json["end"];
            item.Start = (double)json["start"];
            if (json["color"] != null)
            {
                item.Color = ServerColor.FromJson((JsonObject)json["color"]);
            }
            item.Visible = (bool)json["visible"];
            return item;
        }