WeatherDatum.fromWeatherData constructor

WeatherDatum.fromWeatherData(
  1. Weather weather
)

Implementation

WeatherDatum.fromWeatherData(Weather weather)
    : country = weather.country,
      areaName = weather.areaName,
      weatherMain = weather.weatherMain,
      weatherDescription = weather.weatherDescription,
      date = weather.date,
      sunrise = weather.sunrise,
      sunset = weather.sunset,
      latitude = weather.latitude,
      longitude = weather.longitude,
      pressure = weather.pressure,
      windSpeed = weather.windSpeed,
      windDegree = weather.windDegree,
      humidity = weather.humidity,
      cloudiness = weather.cloudiness,
      rainLastHour = weather.rainLastHour,
      rainLast3Hours = weather.rainLast3Hours,
      snowLastHour = weather.snowLastHour,
      snowLast3Hours = weather.snowLast3Hours,
      temperature = weather.temperature!.celsius,
      tempMin = weather.tempMin!.celsius,
      tempMax = weather.tempMax!.celsius,
      super();