TheMovieReview.fromJson constructor

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

Implementation

TheMovieReview.fromJson(Map<String, dynamic> json) {
  author = json["author"];
  authorDetails = json["author_details"] == null
      ? null
      : AuthorDetails.fromJson(json["author_details"]);
  content = json["content"];
  createdAt = json["created_at"];
  id = json["id"];
  updatedAt = json["updated_at"];
  url = json["url"];
}