getZendeskArticles method

Future<List<HelpdeskArticle>> getZendeskArticles(
  1. num sectionId, {
  2. String category = '',
  3. String section = '',
})

Implementation

Future<List<HelpdeskArticle>> getZendeskArticles(num sectionId,
    {String category = '', String section = ''}) async {
  List apiArticles = await _platform
      .invokeMethod("getZendeskArticles", {"sectionId": sectionId});
  List<HelpdeskArticle> articles = apiArticles.map((e) {
    HelpdeskArticle article = HelpdeskArticle.fromMap(e);
    article.category = category;
    article.section = section;
    return article;
  }).toList();
  return articles;
}