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

FromJson() static private method

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

            if (json["backStyle"] != null)
            {
                backSetting.BackStyle = ServerStyle.FromJson((JsonObject)json["backStyle"]);
            }

            if (json["labelBackShape"] != null)
            {
                backSetting.LabelBackShape = (LabelBackShape)Enum.Parse(typeof(LabelBackShape), json["labelBackShape"], true);
            }
            else
            {
                //不处理null的情况
            }
            return backSetting;
        }