public static ShoppingCartItem FromSnapshot(ShoppingCartItemSnapshot snapshot) { return new ShoppingCartItem(snapshot); }
private ShoppingCartItem(ShoppingCartItemSnapshot snapshot) { this.itemId = snapshot.ItemId; this.qty = snapshot.Qty; this.price = snapshot.Price; this.amountAfterDiscount = snapshot.AmountAfterDiscount; itemCode = snapshot.ItemCode; itemName = snapshot.ItemName; unitCode = snapshot.UnitCode; }