Condition class

Weather condition

Constructors

Condition({required int id, required String main, required String description, required String icon, required String iconId})
Define a Condition class.
const
Condition.fromJson(Map<String, dynamic> json)
Factory that returns a Weather class from json Map.
factory

Properties

description String
Weather condition within the group. You can get the output in your language.
final
hashCode int
The hash code for this object.
no setterinherited
icon String
Weather image icon URL.
final
iconId String
Weather image icon ID from API.
final
id int
Weather condition ID.
final
main String
Group of weather parameters (Rain, Snow, Extreme etc.).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a map of the class.
toString() String
A string representation of this object.
inherited

Operators

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