getAuthorByKey method
Implementation
Future<AuthorDTO?> getAuthorByKey(String authorKey) async {
try {
var dioResponse = await _client.get('$openLibraryBase$authorKey.json');
var model = AuthorDTO.fromJson(dioResponse.data);
return model;
} catch (e) {
print(e);
return null;
}
}