/// <inheritdoc/> public Item?ConvertCollection(PST.Collection postmanCollection) { if (postmanCollection == null) { return(null); } var collection = new Item { Type = ItemType.Collection, Name = postmanCollection.Info?.Name, Children = new List <Item>() }; IList <Item> children = ConvertItems(postmanCollection.Items); if (children != null) { foreach (var child in children) { collection.Children.Add(child); } } return(collection); }
public PST.Collection ConvertCollection(Item nightingaleCollection) { if (nightingaleCollection == null) { return(null); } PST.Collection postmanCollection = new PST.Collection() { Info = new PST.Info() { Name = nightingaleCollection.Name }, Items = ConvertItems(nightingaleCollection.Children) }; return(postmanCollection); }