Reviews.fromJson constructor

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

Implementation

Reviews.fromJson(Map<String, dynamic> json) {
  if (json["author_name"] is String) this.authorName = json["author_name"];
  if (json["author_url"] is String) this.authorUrl = json["author_url"];
  if (json["language"] is String) this.language = json["language"];
  if (json["profile_photo_url"] is String) this.profilePhotoUrl = json["profile_photo_url"];
  if (json["rating"] is int) this.rating = json["rating"];
  if (json["relative_time_description"] is String)
    this.relativeTimeDescription = json["relative_time_description"];
  if (json["text"] is String) this.text = json["text"];
  if (json["time"] is int) this.time = json["time"];
}