productDetailsList abstract method

  1. @GET.new(Api.productDetailsList)
Future<ProductDetailsResponseModel> productDetailsList({
  1. @Query.new("pogId") required int pogId,
  2. @Query.new("customerSegment") int? customerSegment,
  3. @Query.new("searchText") String? searchText,
  4. @Query.new("subGroupId") String? subGroupId,
  5. @Query.new("order") String? order = "desc",
  6. @Header.new("X-User-Id") String xUserId = "",
  7. @Header.new("content-type") String type = "application/x-www-form-urlencoded",
})

Implementation

@GET(Api.productDetailsList)
Future<ProductDetailsResponseModel> productDetailsList({
  @Query("pogId") required int pogId,
  @Query("customerSegment") int? customerSegment,
  @Query("searchText") String? searchText,
  @Query("subGroupId") String? subGroupId,
  @Query("order") String? order = "desc",
  @Header("X-User-Id") String xUserId = "",
  @Header("content-type") String type = "application/x-www-form-urlencoded",
});