SuperMap.Web.ISDotNET6.ServerTextStyle.FromJson C# (CSharp) Method

FromJson() public static method

${IS6_ServerTextStyle_method_FromJson_D}
public static FromJson ( System.Json.JsonObject jsonObject ) : ServerTextStyle
jsonObject System.Json.JsonObject ${IS6_ServerTextStyle_method_FromJson_param_jsonObject}
return ServerTextStyle
        public static ServerTextStyle FromJson(JsonObject jsonObject)
        {
            if (jsonObject == null)
            {
                return null;
            }
            ServerTextStyle result = new ServerTextStyle
            {
                Align = (ServerTextAlign)(int)jsonObject["align"],
                BgColor = ServerColor.FromJson((int)jsonObject["bgColor"]),
                Color = ServerColor.FromJson((int)jsonObject["color"]),
                FixedSize = (bool)jsonObject["fixedSize"],
                FixedTextSize = (int)jsonObject["fixedTextSize"],
                FontHeight = (double)jsonObject["fontHeight"],
                FontWidth = (double)jsonObject["fontWidth"],
                FontName = (string)jsonObject["fontName"],
                Bold = (bool)jsonObject["bold"],
                Italic = (bool)jsonObject["italic"],
                Shadow = (bool)jsonObject["shadow"],
                Stroke = (bool)jsonObject["stroke"],
                Outline = (bool)jsonObject["outline"],
                Transparent = (bool)jsonObject["transparent"],
                Underline = (bool)jsonObject["underline"],
                ItalicAngle = (double)jsonObject["italicAngle"],
                Rotation = (int)jsonObject["rotation"]
            };

            return result;
        }