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

FromJson() static private method

static private FromJson ( System.Json.JsonObject json ) : ThemeLabelItem
json System.Json.JsonObject
return ThemeLabelItem
        internal static ThemeLabelItem FromJson(JsonObject json)
        {
            if (json == null) return null;
            ThemeLabelItem item = new ThemeLabelItem();
            item.Caption = json["caption"];
            item.End = (double)json["end"];
            item.Start = (double)json["start"];
            if (json["style"] != null)
            {
                item.Style = ServerTextStyle.FromJson((JsonObject)json["style"]);
            }
            item.Visible = (bool)json["visible"];
            return item;
        }