// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'preferences.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

_Preferences _$PreferencesFromJson(Map<String, dynamic> json) => _Preferences(
  scores: Map<String, int>.from(json['scores'] as Map),
  maxTimeMinutes: (json['maxTimeMinutes'] as num).toInt(),
  startLocation: (json['startLocation'] as List<dynamic>)
      .map((e) => (e as num).toDouble())
      .toList(),
  endLocation: (json['endLocation'] as List<dynamic>?)
      ?.map((e) => (e as num).toDouble())
      .toList(),
  detourToleranceMinutes: (json['detourToleranceMinutes'] as num?)?.toInt(),
);

Map<String, dynamic> _$PreferencesToJson(_Preferences instance) =>
    <String, dynamic>{
      'scores': instance.scores,
      'maxTimeMinutes': instance.maxTimeMinutes,
      'startLocation': instance.startLocation,
      'endLocation': instance.endLocation,
      'detourToleranceMinutes': instance.detourToleranceMinutes,
    };
