toJsonFromList static method

List toJsonFromList(
  1. List<SimpleArticle> articles
)

Implementation

static List<dynamic> toJsonFromList(List<SimpleArticle> articles) {
  if (articles == null) return [];
  return articles.map((a) => a.toJson()).toList();
}