WeatherModel.fromJson constructor

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

Implementation

factory WeatherModel.fromJson(Map<String, dynamic> json) => WeatherModel(
      current: Current.fromJson(json["current"]),
      daily: List<Daily>.from(json["daily"].map((x) => Daily.fromJson(x))),
    );