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

FromJson() static private method

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

            ThemeLabelText labelText = new ThemeLabelText();
            labelText.MaxTextHeight = (int)json["maxTextHeight"];
            labelText.MaxTextWidth = (int)json["maxTextWidth"];
            labelText.MinTextHeight = (int)json["minTextHeight"];
            labelText.MinTextWidth = (int)json["minTextWidth"];
            labelText.UniformMixedStyle = LabelMixedTextStyle.FromJson((JsonObject)json["uniformMixedStyle"]);
            labelText.UniformStyle = ServerTextStyle.FromJson((JsonObject)json["uniformStyle"]);
            return labelText;
        }