static CartItem fromBsonDocument(final BsonDocument doc) {
return new CartItem(
doc.getObjectId("_id").getValue(),
doc.getString("user_id").getValue(),
doc.getDocument("store_details").getString("name").getValue(),
doc.getDocument("store_details").getString("location").getValue(),
doc. _____________________
/* This is where i need help ......i am not able to get
the values inside itemname, itemcost which i need to print in cardview?
Can someone help with declaration part as well as this underlined part?
*/
doc.getString("date").getValue(),
doc.getString("time").getValue(),
doc.getString("username").getValue()
);
}