getAlbums method
Implementation
@override
Future<AlbumResponse> getAlbums(
ServiceCall call, AlbumRequest request) async {
if (request.id > 0) {
final album = findAlbums(request.id);
return AlbumResponse()..albums.addAll(album);
}
final albumList = albums.map(convertToAlbum).toList();
return AlbumResponse()..albums.addAll(albumList);
}