Skip to content

Commit ab15d57

Browse files
[FiX] product_variation image json parsing
1 parent 34cffba commit ab15d57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/models/response/product_variation.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ class ProductVariation {
139139
.toList(),
140140
metaData = (json['meta_data'] as List)
141141
.map((i) => MetaData.fromJson(i))
142-
.toList();
142+
.toList(),
143+
image = Image.fromJson(json['image']);
143144
}
144145

145146
class Category {

0 commit comments

Comments
 (0)