getArtistById method

Future<Artist> getArtistById(
  1. int id
)

Gets the artist with the given id

Implementation

Future<Artist> getArtistById(int id) async {
  final response = await _get('/api/artist/$id');

  return Artist.fromJson(response.data);
}