PageBlockRelatedArticle.fromJson constructor

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

Parse from a json

Implementation

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