Method to convert a Temperature instance to a JSON map.
Map<String, dynamic> toJson() => _$TemperatureToJson(this);