getPublisher method

Future<Publisher?> getPublisher(
  1. String name, {
  2. int page = 1,
  3. int pageSize = 20,
})

Get the list of books from a publisher

Implementation

Future<Publisher?> getPublisher(
  String name, {
  int page = 1,
  int pageSize = 20,
}) async {
  final response = await _get(
    "publisher/$name",
    queryParameters: <String, Object?>{
      "page": page,
      "pageSize": pageSize,
    },
  );
  return Publisher.fromJson(response);
}