feat(wip): Update entities and adopt a proper repository workflow for trip "obtention"
This commit is contained in:
@@ -7,10 +7,22 @@ part of 'preferences.dart';
|
||||
// **************************************************************************
|
||||
|
||||
_Preferences _$PreferencesFromJson(Map<String, dynamic> json) => _Preferences(
|
||||
test: json['test'] as String,
|
||||
);
|
||||
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>{
|
||||
'test': instance.test,
|
||||
'scores': instance.scores,
|
||||
'maxTimeMinutes': instance.maxTimeMinutes,
|
||||
'startLocation': instance.startLocation,
|
||||
'endLocation': instance.endLocation,
|
||||
'detourToleranceMinutes': instance.detourToleranceMinutes,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user