DailyWeather.fromJson constructor

DailyWeather.fromJson(
  1. Map<String, dynamic> json
)

Creates a DailyWeather object from json

Implementation

factory DailyWeather.fromJson(Map<String, dynamic> json) {
  return DailyWeather(
    json['dt'],
    json['sunrise'],
    json['sunset'],
    DailyTemperature.fromJson(json['temp']),
    DailyFeelsLike.fromJson(json['feels_like']),
    json['pressure'],
    json['humidity'],
    json['dew_point'],
    Wind.fromJson({
      'speed': json['wind_speed'],
      'deg': json['wind_deg'],
      'gust': json['wind_gust'],
    }),
    Details.fromJsonArray(json['weather']),
    json['clouds'],
    json['pop'],
    json['rain'],
    json['snow'],
    json['uvi'],
  );
}