OrderItem.fromJson(- Map<String, dynamic> json
)
Implementation
factory OrderItem.fromJson(Map<String, dynamic> json) => OrderItem(
qty: json["qty"],
id: json["id"],
productId: json["productID"],
productCode: json["productCode"],
imageUrl: json["imageUrl"],
imageThumbUrl: json["imageThumbUrl"],
title: json["title"],
seoTitle: json["seoTitle"],
isOutOfStock: json["isOutOfStock"],
price: json["price"] == null ? null : json["price"]!.toDouble(),
finalPrice:
json["finalPrice"] == null ? null : json["finalPrice"]!.toDouble(),
hasDiscount: json["hasDiscount"],
discountValue: json["discountValue"],
discountType: json["discountType"],
promoText: json["promoText"],
bogoPromoText: json["bogoPromoText"],
croppedImageUrl: json["croppedImageURL"],
enableCropping: json["enableCropping"],
size: json["size"],
sizeId: json["sizeID"],
colorHexaCode: json["colorHexaCode"],
color: json["color"],
colorId: json["colorID"],
);