ProductReview.fromJson constructor

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

Implementation

ProductReview.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  dateCreated = json['date_created'];
  dateCreatedGmt = json['date_created_gmt'];
  productId = json['product_id'];
  status = json['status'];
  reviewer = json['reviewer'];
  reviewerEmail = json['reviewer_email'];
  review = json['review'];
  rating = json['rating'];
  verified = json['verified'];
  reviewerAvatarUrls = json['reviewer_avatar_urls'] != null
      ? (json['reviewer_avatar_urls'])
      : null;
  links = json['_links'] != null ? Links.fromJson(json['_links']) : null;
}