getLocation abstract method

  1. @GET(Api.getlocations)
Future<GenericLocationResponse> getLocation({
  1. @Query("page") int page = 1,
  2. @Query("size") int size = 100,
  3. @Query("sort") String sort = "createdDate",
  4. @Query("order") String order = "desc",
  5. @Query("softDelete") bool softDelete = false,
  6. @Query("locationType") int locationType = 2,
  7. @Query("parentId") String? parentId,
})

Implementation

@GET(Api.getlocations)
Future<GenericLocationResponse> getLocation({
  @Query("page") int page = 1,
  @Query("size") int size = 100,
  @Query("sort") String sort = "createdDate",
  @Query("order") String order = "desc",
  @Query("softDelete") bool softDelete = false,
  @Query("locationType") int locationType = 2,
  @Query("parentId") String? parentId,
});