constructQuery method

String constructQuery()

Implementation

String constructQuery() {
  Map<String, String> queryParams = {
    'api_key': _apiKey,
    'language': 'en',
  };

  String queryString = queryParams.entries.map((entry) => '${entry.key}=${entry.value}').join('&');
  return '?$queryString';
}