OneCallCurrentWeather class Null safety

This is the class that handles JSON deserialization and makes data for the current weather forecast received from queries to the OneCall API endpoint accessible.

Constructors

OneCallCurrentWeather({int? weatherID, String? iconID, WeatherType? weatherType, String? mainDescription, String? secondaryDescription, num? temp, num? feelsLikeTemp, num? dewPointTemp, num? humidity, num? cloudiness, num? uvi, num? visibility, num? pressure, num? windSpeed, int? windDegree, num? windGustSpeed, num? rainAmountLast1h, num? snowAmountLast1h, DateTime? sunrise, DateTime? sunset, DateTime? timeStamp})
OneCallCurrentWeather.fromJson(Map<String, dynamic> json, UnitSettings settings)
JSON deserialization constructor
factory

Properties

cloudiness num?
The cloudiness, in percentage
read / write
dewPointTemp num?
The atmospheric temperature (varying according to the pressure and humidity) below which dew can form
read / write
feelsLikeTemp num?
The current temperature, accounting for human perception, in Celsius by default
read / write
hashCode int
The hash code for this object.
read-only, inherited
humidity num?
The humidity, in percentage
read / write
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
read / write
mainDescription String?
This is the main, concise description for the current weather
read / write
pressure num?
The atmospheric pressure, in hecto-pascals by default
read / write
rainAmountLast1h num?
The amount of rainfall in the past 1 hour, in mm by default
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secondaryDescription String?
This is the secondary, longer description for the current weather
read / write
snowAmountLast1h num?
The amount of snowfall in the past 1 hour, in mm by default
read / write
sunrise DateTime?
The time of sunrise for that day, in UTC time
read / write
sunset DateTime?
The time of sunset for that day, in UTC time
read / write
temp num?
The current temperature, in Celsius by default
read / write
timeStamp DateTime?
The timestamp of when the data was requested, in UTC time
read / write
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
read / write
visibility num?
The current visibility, in kilometres by default
read / write
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
read / write
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
read / write
windDegree int?
The direction of the wind, in degrees
read / write
windGustSpeed num?
The wind gust speed, in km/h by default
read / write
windSpeed num?
The wind speed, in km/h by default
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited