getForecastWeatherByLocation method
Fetch Forecast API data by location.
Implementation
Future<ForecastWeather> getForecastWeatherByLocation(
double latitude, double longitude,
{int forecastDays = 1,
bool airQualityIndex = false,
bool alerts = false}) async {
Map<String, dynamic>? jsonResponse =
await _sendRequest<Map<String, dynamic>>(APIType.forecast,
latitude: latitude,
longitude: longitude,
forecastDays: forecastDays,
airQualityIndex: airQualityIndex,
alerts: alerts);
return ForecastWeather(jsonResponse!);
}