public static Dictionary <string, string> ToAttributeDictionary(this AttributeList attributeList) { var attributeLines = attributeList.Select(a => new ProductAttributeLine { name = a.name, options = a.options }).ToList(); return(attributeLines.ToAttributeDictionary()); }