コード例 #1
0
        public static NodeElement ToNodeElement(CsvElement item)
        {
            NodeElement nodeElement = new NodeElement()
            {
                name = item.Name, label = item.Label, type = "element", meta = new NodeMeta()
                {
                    description = item.Description, icon = new NodeIcon()
                    {
                        large = item.Icon, small = item.Icon
                    },
                    images = SerializationService.ToNodeImages(item.Images),
                    link   = item.Link, list = item.List, multinational = true, sustainability = "", year = item.Year,
                    videos = SerializationService.ToNodeVideos(item.Videos)
                }
            };

            return(nodeElement);
        }