deleteAssetById abstract method

  1. @DELETE("${Api.addToCart}/{cartId}/assets")
Future<CartModel> deleteAssetById({
  1. @Path("cartId") required String cartId,
  2. @Query("assetId") String? assetId,
  3. @Query("startRange") String? startRange,
  4. @Query("endRange") String? endRange,
  5. @Query("productCode") String? productCode,
  6. @Header("X-User-Id") String xUserId = "",
  7. @Header("Content-Type") String type = "application/json",
  8. @Header("X-Roles") String xRoles = "",
})

Implementation

@DELETE("${Api.addToCart}/{cartId}/assets")
Future<CartModel> deleteAssetById(
    {@Path("cartId") required String cartId,
    @Query("assetId") String? assetId,
    @Query("startRange") String? startRange,
    @Query("endRange") String? endRange,
    @Query("productCode") String? productCode,
    @Header("X-User-Id") String xUserId = "",
    @Header("Content-Type") String type = "application/json",
    @Header("X-Roles") String xRoles = ""});