Current.fromJson constructor

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

Implementation

factory Current.fromJson(Map<String, dynamic> json) => Current(
      dt: json["dt"],
      temp: json["temp"].toDouble(),
      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))),
    );