ShopLiveShortformProductData.fromJson constructor
ShopLiveShortformProductData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ShopLiveShortformProductData.fromJson(Map<String, dynamic> json) {
return ShopLiveShortformProductData(
brand: json['brand'],
currency: json['currency'],
description: json['description'],
discountPrice: json['discountPrice'] + 0.0,
discountRate: json['discountRate'] + 0.0,
imageUrl: json['imageUrl'],
name: json['name'],
originalPrice: json['originalPrice'] + 0.0,
productId: json['productId'],
showPrice: json['showPrice'],
sku: json['sku'],
stockStatus: json['stockStatus'],
url: json['url'],
);
}