getZendeskArticlesForSection method

Future<List<HelpdeskArticle>> getZendeskArticlesForSection(
  1. HelpdeskSection section
)

Implementation

Future<List<HelpdeskArticle>> getZendeskArticlesForSection(
    HelpdeskSection section) async {
  return (await getZendeskArticles(section.id)).map((article) {
    article.category = section.category;
    article.section = section.title;
    article.parentId = section.id;
    return article;
  }).toList();
}