更新
This commit is contained in:
@@ -15,7 +15,9 @@ WeatherModel _$WeatherModelFromJson(Map<String, dynamic> json) => WeatherModel()
|
||||
..max_temperature = (json['max_temperature'] as num?)?.toInt()
|
||||
..wind_direction = json['wind_direction'] as String?
|
||||
..wind_speed = (json['wind_speed'] as num?)?.toInt()
|
||||
..cityName = json['cityName'] as String?;
|
||||
..cityName = json['cityName'] as String?
|
||||
..weatherIcon = json['weatherIcon'] as String?
|
||||
..weatherIconurl = json['weatherIconurl'] as String?;
|
||||
|
||||
Map<String, dynamic> _$WeatherModelToJson(WeatherModel instance) =>
|
||||
<String, dynamic>{
|
||||
@@ -28,4 +30,6 @@ Map<String, dynamic> _$WeatherModelToJson(WeatherModel instance) =>
|
||||
'wind_direction': instance.wind_direction,
|
||||
'wind_speed': instance.wind_speed,
|
||||
'cityName': instance.cityName,
|
||||
'weatherIcon': instance.weatherIcon,
|
||||
'weatherIconurl': instance.weatherIconurl,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user