import RecommendationSeed from './recommendation-seed' ; import TrackSimplified from '../track/track-simplified' ; class Recommendations { seeds : RecommendationSeed [ ] ; tracks : TrackSimplified [ ] ; constructor ( json ) { this . seeds = json . seeds . map ( ( seedJson ) => new RecommendationSeed ( seedJson ) ) ; this . tracks = json . tracks . map ( ( trackJson ) => new TrackSimplified ( trackJson ) ) ; } } export default Recommendations ;