getWarehouseList abstract method

  1. @GET(Api.warehouseList)
Future<WarehouseModel> getWarehouseList({
  1. @Header("X-UserId") String xUserId = "",
  2. @Query("size") int? size,
  3. @Query("page") int? page,
  4. @Query("partnerId") required String partnerId,
  5. @Query("sort") String sort = "createdDate",
  6. @Query("order") String order = "asc",
  7. @Query("status") int status = 1,
  8. @Query("keyword") String? keyword,
})

Implementation

@GET(Api.warehouseList)
Future<WarehouseModel> getWarehouseList({
  @Header("X-UserId") String xUserId = "",
  @Query("size") int? size,
  @Query("page") int? page,
  @Query("partnerId") required String partnerId,
  @Query("sort") String sort = "createdDate",
  @Query("order") String order = "asc",
  @Query("status") int status = 1,
  @Query("keyword") String? keyword,
});