public DeliveryProfileFilter(JToken node) : base(node) { if (node["isLive"] != null) { this._IsLive = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["isLive"].Value <string>()); } if (node["orderBy"] != null) { this._OrderBy = (DeliveryProfileOrderBy)StringEnum.Parse(typeof(DeliveryProfileOrderBy), node["orderBy"].Value <string>()); } }
public DeliveryProfileFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "isLive": this._IsLive = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; case "orderBy": this._OrderBy = (DeliveryProfileOrderBy)StringEnum.Parse(typeof(DeliveryProfileOrderBy), propertyNode.InnerText); continue; } } }