getAssetDetails abstract method

  1. @GET(Api.getAssetDetails)
Future<StockDealerAssetModel> getAssetDetails({
  1. @Query("pageNo") int pageNo = 1,
  2. @Query("perPageCount") int perPageCount = 10,
  3. @Query("filterRetailerNumber") required String filterRetailerNumber,
  4. @Query("filterProductCode") required String filterProductCode,
  5. @Query("filterStatusId") required String filterStatusId,
  6. @Query("filterSerialNumberLike") String? filterSerialNumberLike,
  7. @Query("orderBy") String orderBy = "DESC",
  8. @Query("sort") String sort = "updatedAt",
  9. @Header("X-User-Id") String xUserId = "",
  10. @Header("content-type") String type = "application/json",
})

Implementation

@GET(Api.getAssetDetails)
Future<StockDealerAssetModel> getAssetDetails({
  @Query("pageNo") int pageNo = 1,
  @Query("perPageCount") int perPageCount = 10,
  @Query("filterRetailerNumber") required String filterRetailerNumber,
  @Query("filterProductCode") required String filterProductCode,
  @Query("filterStatusId") required String filterStatusId,
  @Query("filterSerialNumberLike") String? filterSerialNumberLike,
  @Query("orderBy") String orderBy = "DESC",
  @Query("sort") String sort = "updatedAt",
  @Header("X-User-Id") String xUserId = "",
  @Header("content-type") String type = "application/json",
});