on ‎2019 Feb 12 2:15 PM
i wanted to get productmodel for the product which is added in cartdata.please help.
Request clarification before answering.
You may use the below logic:
ProductData productData= cartData.getEntries().iterator().next().getProduct();
Once you get the productData, you can use the product reverse populator to convert the productdata to productModel.
Cheers 🙂
P.S: Please apply the necessary null checks during implementation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.