WeatherCurrent class

The model is current weather data API response for WeatherOneCall.

Constructors

WeatherCurrent(Map<String, dynamic> _weatherData, {required DateTime? date, required DateTime? sunrise, required DateTime? sunset, required double? temp, required double? tempFeelsLike, required double? visibility, required double? pressure, required double? humidity, required double? dewPoint, required double? windSpeed, required double? windDegree, required double? windGust, required double? cloudiness, required double? uvi, required String? weatherDescription, required String? weatherMain, required String? weatherIcon, required int? weatherConditionCode})
const
WeatherCurrent.fromJson(Map<String, dynamic> jsonData)
Creating WeatherCurrent 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
pressure double?
Atmospheric pressure, hPa
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sunrise DateTime?
Sunrise time, Unix, UTC.
final
sunset DateTime?
Sunrise time, Unix, UTC. For polar areas in midnight sun and polar night periods this parameter is not returned in the response
final
temp double?
Temperature now.
final
tempFeelsLike double?
This Temperature parameter 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