Review.fromJson constructor

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

Creates a Review from JSON data.

Implementation

factory Review.fromJson(Map<String, dynamic> json) {
  return Review(
    authorName: json["author_name"],
    authorUrl: json["author_url"],
    language: json["language"],
    originalLanguage: json["original_language"],
    profilePhotoUrl: json["profile_photo_url"],
    rating: json["rating"],
    relativeTimeDescription: json["relative_time_description"],
    text: json["text"],
    time: json["time"],
  );
}