WeatherModel.fromMap constructor

WeatherModel.fromMap(
  1. Map<String, dynamic> map
)

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'] ?? '',
  );
}