WeatherDatum class

A Datum that holds weather information collected through OpenWeatherMap.

Inheritance
  • Object
  • Datum
  • CARPDatum
  • WeatherDatum
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)

Constructors

WeatherDatum()
WeatherDatum.fromJson(Map<String, dynamic> json)
factory

Properties

areaName String
read / write
cloudiness double
read / write
country String
read / write
date DateTime
read / write
format → DataFormat
The DataFormat of this Datum.
read-only, override
humidity double
read / write
latitude double
read / write
longitude double
read / write
pressure double
read / write
rainLast3Hours double
read / write
rainLastHour double
read / write
snowLast3Hours double
read / write
snowLastHour double
read / write
sunrise DateTime
read / write
sunset DateTime
read / write
temperature double
read / write
tempMax double
read / write
tempMin double
read / write
weatherDescription String
read / write
weatherMain String
read / write
windDegree double
read / write
windSpeed double
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Unique identifier for the current Datum, unique across all data generated.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timestamp DateTime
The UTC timestamp for generating this data on the device.
read / write, inherited

Methods

toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CARP_DATA_FORMAT → const DataFormat
const DataFormat(NameSpace.CARP, DataType.WEATHER)