Ikuyasu Usui44,594 Points
Why do we need displayWeather object when we have currentWeather?
The object currentWeather has every fields set and you can do
and it works as expected. I don't see any reason why you should construct the new CurrentWeather object. After getCurrentDetails(jsonData), the fields must be set or displayWeather does not have any extra/updated information over currentWeather.