WeatherData class
- Annotations
-
- @JsonSerializable()
Constructors
-
WeatherData({required List<
Details> details, required Temperature temperature, required Wind wind, required Coordinates? coordinates, required String? name, required int date}) -
WeatherData.fromJson(Map<
String, dynamic> json) -
factory
Properties
- coordinates ↔ Coordinates?
-
getter/setter pair
- date ↔ int
-
getter/setter pair
-
details
↔ List<
Details> -
Generic class to hold all the data being extracted from the API response
details holds weather basic details as a list
wind holds wind related details as an object
temperature holds temperature related details as an object
coordinates holds coordinates of the place
name is used to extract the name of the identified place from the API response
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- temperature ↔ Temperature
-
getter/setter pair
- wind ↔ Wind
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited