getAvailableMarkets method
Retrieves the list of available Spotify markets.
Implementation
Future<List<String>> getAvailableMarkets() async {
final url = Uri.https(_baseApiHost, '/v1/markets');
final jsonResponse = await _getJson(url);
final markets = jsonResponse['markets'] as List<dynamic>;
return markets.cast<String>();
}