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

FromJson() static private method

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

            flow.FlowEnabled = (bool)json["flowEnabled"];
            flow.LeaderLineDisplayed = (bool)json["leaderLineDisplayed"];
            if (json["leaderLineStyle"] != null)
            {
                flow.LeaderLineStyle = ServerStyle.FromJson((JsonObject)json["leaderLineStyle"]);
            }
            return flow;
        }