更新
This commit is contained in:
31
lib/controller/weather/weather_controller.g.dart
Normal file
31
lib/controller/weather/weather_controller.g.dart
Normal file
@@ -0,0 +1,31 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'weather_controller.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
WeatherModel _$WeatherModelFromJson(Map<String, dynamic> json) => WeatherModel()
|
||||
..longitude = (json['longitude'] as num?)?.toDouble()
|
||||
..latitude = (json['latitude'] as num?)?.toDouble()
|
||||
..weather_info = json['weather_info'] as String?
|
||||
..current_temperature = (json['current_temperature'] as num?)?.toInt()
|
||||
..min_temperature = (json['min_temperature'] as num?)?.toInt()
|
||||
..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?;
|
||||
|
||||
Map<String, dynamic> _$WeatherModelToJson(WeatherModel instance) =>
|
||||
<String, dynamic>{
|
||||
'longitude': instance.longitude,
|
||||
'latitude': instance.latitude,
|
||||
'weather_info': instance.weather_info,
|
||||
'current_temperature': instance.current_temperature,
|
||||
'min_temperature': instance.min_temperature,
|
||||
'max_temperature': instance.max_temperature,
|
||||
'wind_direction': instance.wind_direction,
|
||||
'wind_speed': instance.wind_speed,
|
||||
'cityName': instance.cityName,
|
||||
};
|
||||
Reference in New Issue
Block a user