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

FromJson() static private method

static private FromJson ( System.Json.JsonObject json ) : JoinItem
json System.Json.JsonObject
return JoinItem
        internal static JoinItem FromJson(JsonObject json)
        {
            if (json == null) return null;
            JoinItem item = new JoinItem();
            if (json.ContainsKey("foreignTableName"))
            {
                item.ForeignTableName = json["foreignTableName"];
            }
            if (json.ContainsKey("joinFilter"))
            {
                item.JoinFilter = json["joinFilter"];
            }
            if (json.ContainsKey("joinType") && !string.IsNullOrEmpty(json["joinType"]))
            {
                item.JoinType = (JoinType)Enum.Parse(typeof(JoinType), json["joinType"], true);
            }
            return item;
        }