todos-contra-el-fuego-mobile/lib/models/appState.g.dart
vjrj 862d423f6b refactor: fix remaining lint warnings and deprecated APIs
- Fix deprecated @ignore in json_serializable models (appState, yourLocation)
- Fix empty catch blocks in compassMapPlugin, globalFiresBottomStats, locationUtils
- Fix no_logic_in_create_state in firesApp, markdownPage, slider
- Fix use_build_context_synchronously in fireAlert
- Fix only_throw_errors in firesApi (8 instances)
- Exclude generated .g.dart files from analysis
- Update deprecated nullable: false to @JsonSerializable()

Build: APK generated successfully, 0 errors, 0 warnings
2026-03-07 09:35:59 +01:00

42 lines
1.5 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
part of 'appState.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
AppState _$AppStateFromJson(Map json) => $checkedCreate(
'AppState',
json,
($checkedConvert) {
final val = AppState(
yourLocations: $checkedConvert(
'yourLocations',
(v) =>
(v as List<dynamic>?)
?.map((e) => YourLocation.fromJson(
Map<String, dynamic>.from(e as Map)))
.toList() ??
const <YourLocation>[]),
fireNotifications: $checkedConvert(
'fireNotifications',
(v) =>
(v as List<dynamic>?)
?.map((e) => FireNotification.fromJson(
Map<String, dynamic>.from(e as Map)))
.toList() ??
const <FireNotification>[]),
isLoading: $checkedConvert('isLoading', (v) => v as bool? ?? false),
);
return val;
},
);
Map<String, dynamic> _$AppStateToJson(AppState instance) => <String, dynamic>{
'isLoading': instance.isLoading,
'yourLocations': instance.yourLocations.map((e) => e.toJson()).toList(),
'fireNotifications':
instance.fireNotifications.map((e) => e.toJson()).toList(),
};