PageBlockRelatedArticle.fromJson constructor

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

Parse from a json

Implementation

factory PageBlockRelatedArticle.fromJson(Map<String, dynamic> json) =>
    PageBlockRelatedArticle(
      url: json['url'],
      title: json['title'],
      description: json['description'],
      photo: json['photo'] == null ? null : Photo.fromJson(json['photo']),
      author: json['author'],
      publishDate: json['publish_date'],
    );