SunPerDay class

Amount of sunshine on a given day.

Annotations

Constructors

SunPerDay({String? day, String? dayShort, String? sunTotal, double? sunRelative})
SunPerDay.fromJson(Map<String, dynamic> json)
Creates a SunPerDay from a JSON object.
factory

Properties

day String?
The day of the week.
getter/setter pair
dayShort String?
Short form of the day of the week.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sunDuration Duration?
The duration of the sunshine on this day. Parsed from sunTotal.
no setter
sunRelative double?
The relative amount of sunshine compared to maximal possible time that day in %. Can range form 0 to 100.
getter/setter pair
sunTotal String?
Total expected sunshine duration in the format 'hh:mm'.
getter/setter pair

Methods

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

Operators

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

Static Methods

listFromJson(List json) List<SunPerDay>
Creates a list of SunPerDay from a JSON list.