getArtistList function
Implementation
Future<List<ArtistsModel>> getArtistList() async {
appStore.setLoading(true);
try {
var res = ArtistsResponse.fromMap(await (handleResponse(await buildHttpResponse(APIEndPoint.artistsList, method: HttpMethod.GET))));
appStore.setLoading(false);
return res.data!.data.validate();
} catch (e) {
appStore.setLoading(false);
throw errorSomethingWentWrong;
}
}