WeatherModel.fromJson constructor

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

Implementation

WeatherModel.fromJson(Map<String, dynamic> json) {
  currentWeather = json['current_weather'] != null
      ? CurrentWeather.fromJson(json['current_weather'])
      : null;
}