cart static method

RecommendationLogic cart({
  1. List<CartItem>? cartItems,
})

Implementation

static RecommendationLogic cart({List<CartItem>? cartItems}) {
  Map<String, dynamic> dataMap = {};
  if (cartItems != null && cartItems.isNotEmpty) {
    dataMap["cartItems"] = cartItems;
  }
  return RecommendationLogic._(name: _CART, data: dataMap);
}