toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.productId != null) {
json[r'product_id'] = this.productId;
} else {
json[r'product_id'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.reviewer != null) {
json[r'reviewer'] = this.reviewer;
} else {
json[r'reviewer'] = null;
}
if (this.reviewerEmail != null) {
json[r'reviewer_email'] = this.reviewerEmail;
} else {
json[r'reviewer_email'] = null;
}
if (this.review != null) {
json[r'review'] = this.review;
} else {
json[r'review'] = null;
}
if (this.rating != null) {
json[r'rating'] = this.rating;
} else {
json[r'rating'] = null;
}
return json;
}