Weather class

Holds weather information collected through OpenWeather API.

Inheritance
  • Object
  • Serializable
  • Data
  • Weather
Annotations
  • @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)

Constructors

Weather()
Weather.fromJson(Map<String, dynamic> json)
factory
Weather.fromWeatherData(Weather weather)

Properties

$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
getter/setter pairinherited
areaName String?
getter/setter pair
cloudiness double?
getter/setter pair
country String?
getter/setter pair
date DateTime?
getter/setter pair
format → DataType
The format of this data as a DataType.
no setterinherited
fromJsonFunction Function
The function which can convert a JSON string to an object of this type.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
humidity double?
getter/setter pair
jsonType String
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
no setterinherited
latitude double?
getter/setter pair
longitude double?
getter/setter pair
pressure double?
getter/setter pair
rainLast3Hours double?
getter/setter pair
rainLastHour double?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snowLast3Hours double?
getter/setter pair
snowLastHour double?
getter/setter pair
sunrise DateTime?
getter/setter pair
sunset DateTime?
getter/setter pair
temperature double?
getter/setter pair
tempMax double?
getter/setter pair
tempMin double?
getter/setter pair
weatherDescription String?
getter/setter pair
weatherMain String?
getter/setter pair
windDegree double?
getter/setter pair
windSpeed double?
getter/setter pair

Methods

equivalentTo(Data other) bool
Is this data equivalent to other?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Return a JSON encoding of this object.
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

dataType → const String