Files
tuiche/lib/controller/weather/weather_controller.g.dart
2025-05-22 08:56:27 +08:00

32 lines
1.3 KiB
Dart

// 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,
};