WeatherForecastData class
Generic class to hold all values for weather forecasts coming from the API
- Annotations
-
- @JsonSerializable()
Constructors
-
WeatherForecastData.new({required List<
WeatherData> forecastData}) - Constructor for WeatherForecastData
-
WeatherForecastData.fromJson(Map<
String, dynamic> json) -
Factory constructor to create an instance of WeatherForecastData from a JSON map
factory
Properties
-
forecastData
↔ List<
WeatherData> -
List of weather data objects representing the forecast
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts an instance of WeatherForecastData to a JSON map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited