Weather.fromJson constructor

Weather.fromJson(
  1. Map json
)

Implementation

factory Weather.fromJson(Map json) => Weather(
      airData: json['airData'] as int?,
      airQuality: json['airQuality'] as String?,
      city: json['city'] as String?,
      date: json['date'] as String?,
      dateLong: json['dateLong'] as int?,
      dateForVoice: json['date_for_voice'] as String?,
      exp: json['exp'] == null
          ? null
          : WeatherExp.fromJson(json['exp'] as Map<String, dynamic>),
      humidity: json['humidity'] as String?,
      img: json['img'] as String?,
      lastUpdateTime: json['lastUpdateTime'] as String?,
      pm25: json['pm25'] as String?,
      precipitation: json['precipitation'] as String?,
      temp: json['temp'] as int?,
      tempHigh: json['tempHigh'] as String?,
      tempLow: json['tempLow'] as String?,
      tempRange: json['tempRange'] as String?,
      tempReal: json['tempReal'] as String?,
      warning: json['warning'] as String?,
      weather: json['weather'] as String?,
      weatherDescription: json['weatherDescription'] as String?,
      weatherDescription3: json['weatherDescription3'] as String?,
      weatherDescription7: json['weatherDescription7'] as String?,
      weatherType: json['weatherType'] as int?,
      week: json['week'] as String?,
      wind: json['wind'] as String?,
      windLevel: json['windLevel'] as int?,
    );