on 02-12-2019 2:15 PM
i wanted to get productmodel for the product which is added in cartdata.please help.
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 |
---|---|
5 | |
1 | |
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.