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