searchAuthor method

Future<AuthorSearchResults> searchAuthor(
  1. String? name,
  2. int? limit,
  3. int? offset,
  4. List<String>? ids,
  5. List<String>? includes,
)
inherited

Endpoint used: GET /author/{id}

Search for an author by the author's name and return limit number of results (10 by default) in an AuthorSearchResults class instance.

Implementation

Future<AuthorSearchResults> searchAuthor(
  String? name,
  int? limit,
  int? offset,
  List<String>? ids,
  List<String>? includes,
) async {
  var response =
      await searchAuthorResponse(name, limit, offset, ids, includes);
  return AuthorSearchResults.fromJson(jsonDecode(response.body));
}