HistoricalDailyWeather.fromMap constructor

HistoricalDailyWeather.fromMap(
  1. Map map
)

Implementation

HistoricalDailyWeather.fromMap(Map<dynamic, dynamic> map) {
  date = map['date'] as String;
  sunrise = map['sunrise'] as String;
  sunset = map['sunset'] as String;
  moonrise = map['moonrise'] as String;
  moonset = map['moonset'] as String;
  moonPhase = map['moonPhase'] as String;
  tempMax = map['tempMax'] as String;
  tempMin = map['tempMin'] as String;
  humidity = map['humidity'] as String;
  precip = map['precip'] as String;
  pressure = map['pressure'] as String;
}