SkuIds.fromJson constructor
Implementation
SkuIds.fromJson(Map<String, dynamic> json) {
sku = json['sku'];
imageId = json['imageId'];
styleCode = json['styleCode'];
skuId = json['skuId'];
if (json['attribute'] != null) {
attribute = <Attribute>[];
json['attribute'].forEach((v) {
attribute!.add(new Attribute.fromJson(v));
});
}
if (json['category'] != null) {
category = <Category>[];
json['category'].forEach((v) {
category!.add(new Category.fromJson(v));
});
}
brand = json['brand'] != null ? new Brand.fromJson(json['brand']) : null;
productDimension = json['productDimension'];
packingDimension = json['packingDimension'];
weight = json['weight'];
productId = json['productId'];
type = json['type'];
isMultiple = json['isMultiple'];
productName = json['productName'];
imageUrl = json['imageUrl'];
productDescription = json['productDescription'];
price = json['price'] != null ? new Price.fromJson(json['price']) : null;
qty = json['qty'];
sTypename = json['__typename'];
}