OneCallDailyWeather class
This is the class that handles JSON deserialization and makes data for the daily weather forecast received from queries to the OneCall API endpoint accessible.
Constructors
- OneCallDailyWeather({int? weatherID, String? iconID, WeatherType? weatherType, String? mainDescription, String? secondaryDescription, num? tempMorning, num? tempDay, num? tempEvening, num? tempNight, num? tempMin, num? tempMax, num? feelsLikeTempMorning, num? feelsLikeTempDay, num? feelsLikeTempEvening, num? feelsLikeTempNight, num? dewPointTemp, num? humidity, num? cloudiness, num? uvi, num? pressure, num? windSpeed, int? windDegree, num? windGustSpeed, int? precipitationChance, num? rainAmount, num? snowAmount, DateTime? sunrise, DateTime? sunset, DateTime? moonrise, DateTime? moonset, double? moonPhase, DateTime? timeStamp})
-
OneCallDailyWeather.fromJson(Map<
String, dynamic> json, UnitSettings settings) -
JSON deserialization constructor
factory
Properties
- cloudiness ↔ num?
-
The cloudiness, in percentage
getter/setter pair
- dewPointTemp ↔ num?
-
The atmospheric temperature (varying according to the pressure and humidity)
below which dew can form
getter/setter pair
- feelsLikeTempDay ↔ num?
-
The temperature during the day, accounting for human perception, in Celsius by default
getter/setter pair
- feelsLikeTempEvening ↔ num?
-
The temperature in the evening, accounting for human perception, in Celsius by default
getter/setter pair
- feelsLikeTempMorning ↔ num?
-
The temperature in the morning, accounting for human perception, in Celsius by default
getter/setter pair
- feelsLikeTempNight ↔ num?
-
The temperature at night, accounting for human perception, in Celsius by default
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- humidity ↔ num?
-
The humidity, in percentage
getter/setter pair
- iconID ↔ String?
-
The icon ID provided by OpenWeather. The table for what the values represent can be found at
https://openweathermap.org/weather-conditions . I do not recommend you use this directly.
Instead, use the weatherType parameter, which is extrapolated from both this and the id
sent by OpenWeather for a specific request
getter/setter pair
- mainDescription ↔ String?
-
This is the main, concise description for the current weather
getter/setter pair
- moonPhase ↔ double?
-
The phase of the moon.
getter/setter pair
- moonrise ↔ DateTime?
-
The time when the moon rises, in UTC time
getter/setter pair
- moonset ↔ DateTime?
-
The time when the moon sets, in UTC time
getter/setter pair
- precipitationChance ↔ int?
-
The probability of precipitation on that day, as a percentage
getter/setter pair
- pressure ↔ num?
-
The atmospheric pressure, in hecto-pascals by default
getter/setter pair
- rainAmount ↔ num?
-
The amount of predicted rainfall that day, in millimetres by default
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryDescription ↔ String?
-
This is the secondary, longer description for the current weather
getter/setter pair
- snowAmount ↔ num?
-
The amount of predicted snowfall that day, in millimetres by default
getter/setter pair
- sunrise ↔ DateTime?
-
The time of sunrise for that day, in UTC time
getter/setter pair
- sunset ↔ DateTime?
-
The time of sunset for that day, in UTC time
getter/setter pair
- tempDay ↔ num?
-
The temperature during the day, in Celsius by default
getter/setter pair
- tempEvening ↔ num?
-
The temperature in the evening, in Celsius by default
getter/setter pair
- tempMax ↔ num?
-
The maximum temperature on that day
getter/setter pair
- tempMin ↔ num?
-
The minimum temperature on that day
getter/setter pair
- tempMorning ↔ num?
-
The temperature in the morning, in Celsius by default
getter/setter pair
- tempNight ↔ num?
-
The temperature at night, in Celsius by default
getter/setter pair
- timeStamp ↔ DateTime?
-
The timestamp of when the data was requested, in UTC time
getter/setter pair
- uvi ↔ num?
-
The Ultraviolet Index, an international standard with values ranging from 0-12. More
information can be found at
https://en.wikipedia.org/wiki/Ultraviolet_index
getter/setter pair - weatherID ↔ int?
-
The condition ID provided by OpenWeather. The table for what the values represent can be found at
https://openweathermap.org/weather-conditions . I do not recommend you use this directly.
Instead, use the weatherType parameter, which is extrapolated from both this and the icon string
sent by OpenWeather for a specific request
getter/setter pair
- weatherType ↔ WeatherType?
-
The enum for identifying what the weather condition is. The main description
parameter provides one suitable for display, so this is primarily provided to
aid in implementing conditional logic dependent on the weather, for example, a
dynamic background
getter/setter pair
- windDegree ↔ int?
-
The direction of the wind, in degrees
getter/setter pair
- windGustSpeed ↔ num?
-
The wind gust speed, in km/h by default
getter/setter pair
- windSpeed ↔ num?
-
The wind speed, in km/h by default
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited