getBookChapters method
Future<Response<Chapter> >
getBookChapters({
- required String bookId,
- Pagination? pagination,
- ChapterSorting? sorting,
- List<
Filter?> ? idFilters, - List<
Filter?> ? chapterNameFilters,
Implementation
Future<Response<Chapter>> getBookChapters({
required String bookId,
Pagination? pagination,
ChapterSorting? sorting,
List<Filter?>? idFilters,
List<Filter?>? chapterNameFilters,
}) async {
return _getResponse<Chapter>(
mapping: (c) => Chapter.fromJson(c),
endpoint: 'book/${bookId}/chapter',
pagination: pagination,
sorting: sorting,
filters: [
..._toAttributeFilters('_id', idFilters),
..._toAttributeFilters('chapterName', chapterNameFilters),
],
);
}