public static Chunks FromElement(XElement e)
 {
     var r = new Chunks
     {
         ticket_id = e.Attribute("id").Value,
         Items = new List<Chunk>()
     };
     foreach (var item in e.Element("chunks").Elements("chunk"))
     {
         r.Items.Add(Chunk.FromElement(item));
     }
     return r;
 }
        public static Chunks FromElement(XElement e)
        {
            var r = new Chunks
            {
                ticket_id = e.Attribute("id").Value,
                Items     = new List <Chunk>()
            };

            foreach (var item in e.Element("chunks").Elements("chunk"))
            {
                r.Items.Add(Chunk.FromElement(item));
            }
            return(r);
        }