getArtists method

Future<Iterable<Artist>> getArtists()

Gets all artists

Implementation

Future<Iterable<Artist>> getArtists() async {
  final response = await _get('/api/artist');

  return response.data['items'].map<Artist>((e) => Artist.fromJson(e));
}