Details class

The Details class represents the basic weather details obtained from the API response.

This class includes information such as the weather condition ID, a short description of the weather, a more detailed description, and the weather icon ID.

Properties:

  • id (int): The unique identifier for the weather condition.
  • weatherShortDescription (String): A brief description of the weather parameters (e.g., Rain, Snow, Extreme).
  • weatherLongDescription (String): A detailed description of the weather condition within the group.
  • icon (String): The identifier for the weather icon.
Annotations
  • @JsonSerializable()

Constructors

Details.new({required int id, required String weatherShortDescription, required String weatherLongDescription, required String icon})
A class representing the details of weather information.
Details.fromJson(Map<String, dynamic> json)
Creates a Details instance from a JSON object.`
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
icon String
icon Weather icon id
getter/setter pair
id int
id holds the weather condition ID
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weatherLongDescription String
weatherLongDescription Weather condition within the group
getter/setter pair
weatherShortDescription String
weatherShortDescription Group of weather parameters (Rain, Snow, Extreme etc.)
getter/setter pair

Methods

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

Operators

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