getProductOrder abstract method

  1. @POST(Api.getProductOrder)
Future getProductOrder({
  1. @Body() required dynamic body,
  2. @Query("sortBy") String sortBy = "ASC",
  3. @Query("fieldName") String fieldName = "",
  4. @Query("offset") int? offset,
  5. @Query("limit") int? limit,
  6. @Header("X-UserId") String xUserId = "",
  7. @Header("content-type") String type = "application/json",
})

Implementation

@POST(Api.getProductOrder)
Future<dynamic> getProductOrder({
  @Body() required body,
  @Query("sortBy") String sortBy = "ASC",
  @Query("fieldName") String fieldName = "",
  @Query("offset") int? offset,
  @Query("limit") int? limit,
  @Header("X-UserId") String xUserId = "",
  @Header("content-type") String type = "application/json",
});