searchAuthor function Null safety
Search for an author by the author's name
and return limit
number of results (10 by default)
in an AuthorSearchResult class instance.
Implementation
Future<AuthorSearchResult> searchAuthor(
String? name,
int? limit,
int? offset,
List<String>? ids,
List<String>? includes,
) async {
var response = await searchAuthorResponse(name, limit, offset, ids, includes);
return AuthorSearchResult.fromJson(jsonDecode(response.body));
}