getLocations abstract method

  1. @GET.new(Api.locations)
Future<GenericLocationResponse> getLocations({
  1. @Query.new("page") int page = 1,
  2. @Query.new("size") int size = 100,
  3. @Query.new("sort") String sort = "createdDate",
  4. @Query.new("order") String order = "asc",
  5. @Query.new("softDelete") bool? softDelete,
  6. @Query.new("locationType") int? locationType,
  7. @Query.new("channelId") int channelId = 1,
  8. @Query.new("parentId") String? parentId,
})

Implementation

@GET(Api.locations)
Future<GenericLocationResponse> getLocations({
  @Query("page") int page = 1,
  @Query("size") int size = 100,
  @Query("sort") String sort = "createdDate",
  @Query("order") String order = "asc",
  @Query("softDelete") bool? softDelete,
  @Query("locationType") int? locationType,
  @Query("channelId") int channelId = 1,
  @Query("parentId") String? parentId,
});