Weather class

Weather information

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

Weather({String? conditions, double? temperature, double? humidity, String? wind})
Creates a new Weather instance
Weather.fromJson(Map<String, dynamic> json)
Creates a Weather from JSON
factory

Properties

conditions String?
Weather conditions description
final
hashCode int
The hash code for this object.
no setterinherited
humidity double?
Humidity percentage
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
temperature double?
Temperature in Celsius
final
wind String?
Wind conditions
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this Weather to JSON
toString() String
A string representation of this object.
inherited

Operators

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