SkuIds.fromRequestJson constructor
SkuIds.fromRequestJson(
- dynamic json
Implementation
SkuIds.fromRequestJson(dynamic json) {
skuId = json.skuId;
imageId = json.imageId;
styleCode = json.styleCode;
sku = json.sku;
if (json.attribute != null) {
attribute = <Attribute>[];
json.attribute.forEach((v) {
attribute!.add(new Attribute.fromRequestJson(v));
});
}
if (json.category != null) {
category = <Category>[];
json.category.forEach((v) {
category!.add(new Category.fromRequestJson(v));
});
}
brand = json.brand != null ? new Brand.fromRequestJson(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.fromRequestJson(json.price) : null;
qty = json.qty;
}