// GENERATED CODE - DO NOT MODIFY BY HAND part of 'preferences.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** _Preferences _$PreferencesFromJson(Map json) => _Preferences( scores: Map.from(json['scores'] as Map), maxTimeMinutes: (json['maxTimeMinutes'] as num).toInt(), startLocation: (json['startLocation'] as List) .map((e) => (e as num).toDouble()) .toList(), endLocation: (json['endLocation'] as List?) ?.map((e) => (e as num).toDouble()) .toList(), detourToleranceMinutes: (json['detourToleranceMinutes'] as num?)?.toInt(), ); Map _$PreferencesToJson(_Preferences instance) => { 'scores': instance.scores, 'maxTimeMinutes': instance.maxTimeMinutes, 'startLocation': instance.startLocation, 'endLocation': instance.endLocation, 'detourToleranceMinutes': instance.detourToleranceMinutes, };