toJson method
Returns a Map with the object data
Implementation
Map<String, dynamic> toJson() {
return {
'coordinates': coord.toJson(),
'timezone': timezone,
'timezone_offset': timezoneOffset,
'daily':
List.generate(dailyWeather.length, (i) => dailyWeather[i].toJson()),
};
}