// GENERATED CODE - DO NOT MODIFY BY HAND part of 'timetable_settings.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** TimetableSettings _$TimetableSettingsFromJson( Map json, ) => TimetableSettings( connectDoubleLessons: json['connectDoubleLessons'] as bool, timetableNameMode: $enumDecode( _$TimetableNameModeEnumMap, json['timetableNameMode'], ), showCommuteInTimetable: json['showCommuteInTimetable'] as bool? ?? false, homeStation: json['homeStation'] == null ? null : StopLocation.fromJson(json['homeStation'] as Map), homeAddressLabel: json['homeAddressLabel'] as String?, schoolStation: json['schoolStation'] == null ? null : StopLocation.fromJson(json['schoolStation'] as Map), commuteBufferMinutes: (json['commuteBufferMinutes'] as num?)?.toInt() ?? 5, ); Map _$TimetableSettingsToJson( TimetableSettings instance, ) => { 'connectDoubleLessons': instance.connectDoubleLessons, 'timetableNameMode': _$TimetableNameModeEnumMap[instance.timetableNameMode]!, 'showCommuteInTimetable': instance.showCommuteInTimetable, 'homeStation': instance.homeStation?.toJson(), 'homeAddressLabel': instance.homeAddressLabel, 'schoolStation': instance.schoolStation?.toJson(), 'commuteBufferMinutes': instance.commuteBufferMinutes, }; const _$TimetableNameModeEnumMap = { TimetableNameMode.name: 'name', TimetableNameMode.longName: 'longName', TimetableNameMode.alternateName: 'alternateName', };