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