toJson method
Returns a map of the class.
Implementation
Map<String, dynamic> toJson() {
return {
'grnd_level': groundLevel,
'humidity': humidity,
'temp_max': maxTemperature,
'temp_min': minTemperature,
'pressure': pressure,
'sea_level': seaLevel,
'temp': temperature,
'feels_like': temperatureFeelsLike,
};
}