public ESearchCategoryUserItem(JToken node) : base(node)
 {
     if (node["fieldName"] != null)
     {
         this._FieldName = (ESearchCategoryUserFieldName)StringEnum.Parse(typeof(ESearchCategoryUserFieldName), node["fieldName"].Value <string>());
     }
     if (node["permissionLevel"] != null)
     {
         this._PermissionLevel = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), node["permissionLevel"].Value <string>());
     }
     if (node["permissionName"] != null)
     {
         this._PermissionName = node["permissionName"].Value <string>();
     }
 }
        public ESearchCategoryUserItem(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "fieldName":
                    this._FieldName = (ESearchCategoryUserFieldName)StringEnum.Parse(typeof(ESearchCategoryUserFieldName), propertyNode.InnerText);
                    continue;

                case "permissionLevel":
                    this._PermissionLevel = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), propertyNode.InnerText);
                    continue;

                case "permissionName":
                    this._PermissionName = propertyNode.InnerText;
                    continue;
                }
            }
        }