Review.fromJson constructor Null safety

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

Implementation

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