discountDeleteCart abstract method

  1. @PUT("${Api.addToCart}/{cartId}")
Future<CartModel> discountDeleteCart({
  1. @Body() required dynamic cartDiscountId,
  2. @Path("cartId") required String cartId,
  3. @Header("X-User-Id") String xUserId = "",
  4. @Header("Content-Type") String type = "application/json",
  5. @Header("X-Roles") String xRoles = "",
})

Implementation

@PUT("${Api.addToCart}/{cartId}")
Future<CartModel> discountDeleteCart(
    {@Body() required dynamic cartDiscountId,
    @Path("cartId") required String cartId,
    @Header("X-User-Id") String xUserId = "",
    @Header("Content-Type") String type = "application/json",
    @Header("X-Roles") String xRoles = ""});