exploreSectionFromArgs function
Implementation
ExploreSection exploreSectionFromArgs(ExploreSectionArguments args) {
switch (args.type) {
case ExploreSectionType.Campaign:
return CampaignExploreSection(args);
case ExploreSectionType.Learning:
return LearningResourceExploreSection(args);
case ExploreSectionType.Action:
return ActionExploreSection(args);
case ExploreSectionType.News:
return NewsExploreSection(args);
}
}