We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e3528 commit 63e28b7Copy full SHA for 63e28b7
lib/models/response/product_review.dart
@@ -24,7 +24,7 @@ class ProductReview {
24
String review;
25
int rating;
26
bool verified;
27
- List<Map<String, String>> reviewerAvatarUrls;
+ Map<String, String> reviewerAvatarUrls;
28
Links links;
29
30
ProductReview(
@@ -53,7 +53,7 @@ class ProductReview {
53
rating = json['rating'];
54
verified = json['verified'];
55
reviewerAvatarUrls = json['reviewer_avatar_urls'] != null
56
- ? json['reviewer_avatar_urls']
+ ? (json['reviewer_avatar_urls']).cast<Map<String, String>>()
57
: null;
58
links = json['_links'] != null ? new Links.fromJson(json['_links']) : null;
59
}
0 commit comments