mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-14 00:15:17 +00:00

* feat: add playback history provider * feat: implement recently played section * refactor: use route names * feat: add stats summary and top tracks/artists/albums * feat: add top date based filtering * feat: add stream money calculation * refactor: place search in mobile navbar and settings in home appbar * feat: add individual minutes and streams page * feat(stats): add individual minutes and streams page * chore: default period to 1 month * feat: add text to explain user how hypothetical fees are calculated * chore: ensure usage of route names instead of direct paths * cd: add cache key * cd: remove media_kit_event_loop from git
56 lines
1.9 KiB
Dart
56 lines
1.9 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'state.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$PlaybackHistoryPlaylistImpl _$$PlaybackHistoryPlaylistImplFromJson(
|
|
Map json) =>
|
|
_$PlaybackHistoryPlaylistImpl(
|
|
date: DateTime.parse(json['date'] as String),
|
|
playlist: PlaylistSimple.fromJson(
|
|
Map<String, dynamic>.from(json['playlist'] as Map)),
|
|
$type: json['runtimeType'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$$PlaybackHistoryPlaylistImplToJson(
|
|
_$PlaybackHistoryPlaylistImpl instance) =>
|
|
<String, dynamic>{
|
|
'date': instance.date.toIso8601String(),
|
|
'playlist': instance.playlist.toJson(),
|
|
'runtimeType': instance.$type,
|
|
};
|
|
|
|
_$PlaybackHistoryAlbumImpl _$$PlaybackHistoryAlbumImplFromJson(Map json) =>
|
|
_$PlaybackHistoryAlbumImpl(
|
|
date: DateTime.parse(json['date'] as String),
|
|
album:
|
|
AlbumSimple.fromJson(Map<String, dynamic>.from(json['album'] as Map)),
|
|
$type: json['runtimeType'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$$PlaybackHistoryAlbumImplToJson(
|
|
_$PlaybackHistoryAlbumImpl instance) =>
|
|
<String, dynamic>{
|
|
'date': instance.date.toIso8601String(),
|
|
'album': instance.album.toJson(),
|
|
'runtimeType': instance.$type,
|
|
};
|
|
|
|
_$PlaybackHistoryTrackImpl _$$PlaybackHistoryTrackImplFromJson(Map json) =>
|
|
_$PlaybackHistoryTrackImpl(
|
|
date: DateTime.parse(json['date'] as String),
|
|
track: Track.fromJson(Map<String, dynamic>.from(json['track'] as Map)),
|
|
$type: json['runtimeType'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$$PlaybackHistoryTrackImplToJson(
|
|
_$PlaybackHistoryTrackImpl instance) =>
|
|
<String, dynamic>{
|
|
'date': instance.date.toIso8601String(),
|
|
'track': instance.track.toJson(),
|
|
'runtimeType': instance.$type,
|
|
};
|