WooProductReview.fromJson constructor
WooProductReview.fromJson(
- Map<String, dynamic> json
)
Implementation
WooProductReview.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
? new WooProductReviewLinks.fromJson(json['_links'])
: null;
}