WeatherHourly class

Model represents hourly forecast weather data for WeatherOneCall.

Constructors

WeatherHourly(Map<String, dynamic> _weatherData, {required DateTime? date, required double? temp, required double? tempFeelsLike, required double? pressure, required double? humidity, required double? dewPoint, required double? uvi, required double? cloudiness, required double? visibility, required double? windSpeed, required double? windDegree, required double? windGust, required double? pop, required double? rain, required double? snow, required String? weatherDescription, required String? weatherMain, required String? weatherIcon, required int? weatherConditionCode})
WeatherHourly.fromJson(Map<String, dynamic> jsonData)
Creating WeatherHourly instance from json.
factory

Properties

cloudiness double?
Cloudiness, %
final
date DateTime?
Time of the forecasted data, Unix, UTC.
final
dewPoint double?
Atmospheric temperature (varying according to pressure and humidity) below which water droplets begin to condense and dew can form.
final
hashCode int
The hash code for this object.
no setterinherited
humidity double?
Humidity, %
final
pop double?
Probability of precipitation, %, decimal
final
pressure double?
Atmospheric pressure on the sea level, hPa (hectopascal) - 10^2
final
rain double?
Rain volume for last hour, mm/h
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snow double?
Snow volume for last hour, mm/h
final
temp double?
Temperature now.
final
tempFeelsLike double?
Temperature now. This accounts for the human perception of weather.
final
uvi double?
The maximum value of UV index for the day.
final
visibility double?
Average visibility, metres. The maximum value of the visibility is 10 km.
final
weatherConditionCode int?
Weather condition codes.
final
weatherDescription String?
A long description of the weather.
final
weatherIcon String?
Icon depicting current weather.
final
weatherMain String?
A brief description of the weather.
final
windDegree double?
Wind direction, degrees (meteorological)
final
windGust double?
Wind gust, meter/sec
final
windSpeed double?
Wind speed, meter/sec
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
The original JSON data from the API.
toString() String
A string representation of this object.
override

Operators

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