Skip to content

Commit 63e28b7

Browse files
author
WooSignal
committed
Changes and tweaks
1 parent 18e3528 commit 63e28b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/models/response/product_review.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ProductReview {
2424
String review;
2525
int rating;
2626
bool verified;
27-
List<Map<String, String>> reviewerAvatarUrls;
27+
Map<String, String> reviewerAvatarUrls;
2828
Links links;
2929

3030
ProductReview(
@@ -53,7 +53,7 @@ class ProductReview {
5353
rating = json['rating'];
5454
verified = json['verified'];
5555
reviewerAvatarUrls = json['reviewer_avatar_urls'] != null
56-
? json['reviewer_avatar_urls']
56+
? (json['reviewer_avatar_urls']).cast<Map<String, String>>()
5757
: null;
5858
links = json['_links'] != null ? new Links.fromJson(json['_links']) : null;
5959
}

0 commit comments

Comments
 (0)