Files
Client/lib/storage/rmv_settings.g.dart
T

50 lines
1.7 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'rmv_settings.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
RmvSettings _$RmvSettingsFromJson(Map<String, dynamic> json) => RmvSettings(
favoriteStations:
(json['favoriteStations'] as List<dynamic>?)
?.map((e) => StopLocation.fromJson(e as Map<String, dynamic>))
.toList() ??
const [],
recentStations:
(json['recentStations'] as List<dynamic>?)
?.map((e) => StopLocation.fromJson(e as Map<String, dynamic>))
.toList() ??
const [],
recentTripQueries:
(json['recentTripQueries'] as List<dynamic>?)
?.map((e) => RecentTripQuery.fromJson(e as Map<String, dynamic>))
.toList() ??
const [],
);
Map<String, dynamic> _$RmvSettingsToJson(
RmvSettings instance,
) => <String, dynamic>{
'favoriteStations': instance.favoriteStations.map((e) => e.toJson()).toList(),
'recentStations': instance.recentStations.map((e) => e.toJson()).toList(),
'recentTripQueries': instance.recentTripQueries
.map((e) => e.toJson())
.toList(),
};
RecentTripQuery _$RecentTripQueryFromJson(Map<String, dynamic> json) =>
RecentTripQuery(
from: StopLocation.fromJson(json['from'] as Map<String, dynamic>),
to: StopLocation.fromJson(json['to'] as Map<String, dynamic>),
timestampMs: (json['timestampMs'] as num).toInt(),
);
Map<String, dynamic> _$RecentTripQueryToJson(RecentTripQuery instance) =>
<String, dynamic>{
'from': instance.from.toJson(),
'to': instance.to.toJson(),
'timestampMs': instance.timestampMs,
};