WeatherModel.fromMap constructor
Implementation
factory WeatherModel.fromMap(Map<String, dynamic> map) {
return WeatherModel(
weatherCode: map['weatherCode'] ?? '',
minTemp: map['minTemp'] ?? '',
maxTemp: map['maxTemp'] ?? '',
windSpeed: map['windSpeed'] ?? '',
hum: map['hum'] ?? '',
currentTemp: map['currentTemp'] ?? '',
);
}