public DistributionFieldConfig(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "fieldName":
                    this._FieldName = propertyNode.InnerText;
                    continue;

                case "userFriendlyFieldName":
                    this._UserFriendlyFieldName = propertyNode.InnerText;
                    continue;

                case "entryMrssXslt":
                    this._EntryMrssXslt = propertyNode.InnerText;
                    continue;

                case "isRequired":
                    this._IsRequired = (DistributionFieldRequiredStatus)ParseEnum(typeof(DistributionFieldRequiredStatus), propertyNode.InnerText);
                    continue;

                case "type":
                    this._Type = propertyNode.InnerText;
                    continue;

                case "updateOnChange":
                    this._UpdateOnChange = ParseBool(propertyNode.InnerText);
                    continue;

                case "updateParams":
                    this._UpdateParams = new List <String>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this._UpdateParams.Add(ObjectFactory.Create <String>(arrayNode));
                    }
                    continue;

                case "isDefault":
                    this._IsDefault = ParseBool(propertyNode.InnerText);
                    continue;

                case "triggerDeleteOnError":
                    this._TriggerDeleteOnError = ParseBool(propertyNode.InnerText);
                    continue;
                }
            }
        }
 public DistributionFieldConfig(JToken node) : base(node)
 {
     if (node["fieldName"] != null)
     {
         this._FieldName = node["fieldName"].Value <string>();
     }
     if (node["userFriendlyFieldName"] != null)
     {
         this._UserFriendlyFieldName = node["userFriendlyFieldName"].Value <string>();
     }
     if (node["entryMrssXslt"] != null)
     {
         this._EntryMrssXslt = node["entryMrssXslt"].Value <string>();
     }
     if (node["isRequired"] != null)
     {
         this._IsRequired = (DistributionFieldRequiredStatus)ParseEnum(typeof(DistributionFieldRequiredStatus), node["isRequired"].Value <string>());
     }
     if (node["type"] != null)
     {
         this._Type = node["type"].Value <string>();
     }
     if (node["updateOnChange"] != null)
     {
         this._UpdateOnChange = ParseBool(node["updateOnChange"].Value <string>());
     }
     if (node["updateParams"] != null)
     {
         this._UpdateParams = new List <String>();
         foreach (var arrayNode in node["updateParams"].Children())
         {
             this._UpdateParams.Add(ObjectFactory.Create <String>(arrayNode));
         }
     }
     if (node["isDefault"] != null)
     {
         this._IsDefault = ParseBool(node["isDefault"].Value <string>());
     }
     if (node["triggerDeleteOnError"] != null)
     {
         this._TriggerDeleteOnError = ParseBool(node["triggerDeleteOnError"].Value <string>());
     }
 }