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