Hour.fromJson constructor

Hour.fromJson(
  1. dynamic json
)

Implementation

Hour.fromJson(dynamic json) {
  timeEpoch = json['time_epoch'];
  time = json['time'];
  tempC = json['temp_c'];
  tempF = json['temp_f'];
  isDay = json['is_day'];
  condition = json['condition'] != null ? Condition.fromJson(json['condition']) : null;
  windMph = json['wind_mph'];
  windKph = json['wind_kph'];
  windDegree = json['wind_degree'];
  windDir = json['wind_dir'];
  pressureMb = json['pressure_mb'];
  pressureIn = json['pressure_in'];
  precipMm = json['precip_mm'];
  precipIn = json['precip_in'];
  humidity = json['humidity'];
  cloud = json['cloud'];
  feelslikeC = json['feelslike_c'];
  feelslikeF = json['feelslike_f'];
  windchillC = json['windchill_c'];
  windchillF = json['windchill_f'];
  heatindexC = json['heatindex_c'];
  heatindexF = json['heatindex_f'];
  dewpointC = json['dewpoint_c'];
  dewpointF = json['dewpoint_f'];
  willItRain = json['will_it_rain'];
  chanceOfRain = json['chance_of_rain'];
  willItSnow = json['will_it_snow'];
  chanceOfSnow = json['chance_of_snow'];
  visKm = json['vis_km'];
  visMiles = json['vis_miles'];
  gustMph = json['gust_mph'];
  gustKph = json['gust_kph'];
  uv = json['uv'];
}