SuperMap.Web.iServerJava2.ThemeGraphItem.FromJson C# (CSharp) Method

FromJson() public static method

${iServer2_ThemeGraphItem_method_FromJson_D}
public static FromJson ( System.Json.JsonObject jsonObject ) : ThemeGraphItem
jsonObject System.Json.JsonObject ${iServer2_ThemeGraphItem_method_FromJson_param_jsonObject}
return ThemeGraphItem
        public static ThemeGraphItem FromJson(JsonObject jsonObject)
        {
            if (jsonObject == null)
            {
                return null;
            }

            ThemeGraphItem result = new ThemeGraphItem();

            result.Caption = (string)jsonObject["caption"];
            result.GraphExpression = (string)jsonObject["graphExpression"];
            result.UniformStyle = ServerStyle.FromJson((JsonObject)jsonObject["uniformStyle"]);
            result.RangeSetting = ThemeRange.FromJson((JsonObject)jsonObject["rangeSetting"]);

            return result;
        }