getDataDemo method

  1. @override
Future<AlbumResponse> getDataDemo(
  1. ServiceCall call,
  2. AlbumRequest request
)
override

Implementation

@override
Future<AlbumResponse> getDataDemo(ServiceCall call, AlbumRequest request) async{

  final albumList = albums.map(convertToAlbum).toList();
  return AlbumResponse()..albums.addAll(albumList);
}