toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['id'] = this.id;
  data['date_created'] = this.dateCreated;
  data['date_created_gmt'] = this.dateCreatedGmt;
  data['product_id'] = this.productId;
  data['status'] = this.status;
  data['reviewer'] = this.reviewer;
  data['reviewer_email'] = this.reviewerEmail;
  data['review'] = this.review;
  data['rating'] = this.rating;
  data['verified'] = this.verified;
  if (this.reviewerAvatarUrls != null) {
    data['reviewer_avatar_urls'] = this.reviewerAvatarUrls.toString();
  }
  if (this.links != null) {
    data['_links'] = this.links!.toJson();
  }
  return data;
}