PageBlockRelatedArticles.fromJson constructor

PageBlockRelatedArticles.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory PageBlockRelatedArticles.fromJson(Map<String, dynamic> json) =>
    PageBlockRelatedArticles(
      header: RichText.fromJson(json['header']),
      articles: List<PageBlockRelatedArticle>.from((json['articles'] ?? [])
          .map((item) => PageBlockRelatedArticle.fromJson(item))
          .toList()),
    );