Daily.fromJson constructor

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

Implementation

factory Daily.fromJson(Map<String, dynamic> json) => Daily(
      dt: json["dt"],
      temp: Temp.fromJson(json["temp"]),
      pressure: json["pressure"],
      humidity: json["humidity"],
      windSpeed: json["wind_speed"].toDouble(),
      windDeg: json["wind_deg"],
      weather:
          List<Weather>.from(json["weather"].map((x) => Weather.fromJson(x))),
    );