mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +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
61 lines
2.0 KiB
Dart
61 lines
2.0 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'spotify_friends.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
SpotifyFriend _$SpotifyFriendFromJson(Map json) => SpotifyFriend(
|
|
uri: json['uri'] as String,
|
|
name: json['name'] as String,
|
|
imageUrl: json['imageUrl'] as String,
|
|
);
|
|
|
|
SpotifyActivityArtist _$SpotifyActivityArtistFromJson(Map json) =>
|
|
SpotifyActivityArtist(
|
|
uri: json['uri'] as String,
|
|
name: json['name'] as String,
|
|
);
|
|
|
|
SpotifyActivityAlbum _$SpotifyActivityAlbumFromJson(Map json) =>
|
|
SpotifyActivityAlbum(
|
|
uri: json['uri'] as String,
|
|
name: json['name'] as String,
|
|
);
|
|
|
|
SpotifyActivityContext _$SpotifyActivityContextFromJson(Map json) =>
|
|
SpotifyActivityContext(
|
|
uri: json['uri'] as String,
|
|
name: json['name'] as String,
|
|
index: json['index'] as num,
|
|
);
|
|
|
|
SpotifyActivityTrack _$SpotifyActivityTrackFromJson(Map json) =>
|
|
SpotifyActivityTrack(
|
|
uri: json['uri'] as String,
|
|
name: json['name'] as String,
|
|
imageUrl: json['imageUrl'] as String,
|
|
artist: SpotifyActivityArtist.fromJson(
|
|
Map<String, dynamic>.from(json['artist'] as Map)),
|
|
album: SpotifyActivityAlbum.fromJson(
|
|
Map<String, dynamic>.from(json['album'] as Map)),
|
|
context: SpotifyActivityContext.fromJson(
|
|
Map<String, dynamic>.from(json['context'] as Map)),
|
|
);
|
|
|
|
SpotifyFriendActivity _$SpotifyFriendActivityFromJson(Map json) =>
|
|
SpotifyFriendActivity(
|
|
user: SpotifyFriend.fromJson(
|
|
Map<String, dynamic>.from(json['user'] as Map)),
|
|
track: SpotifyActivityTrack.fromJson(
|
|
Map<String, dynamic>.from(json['track'] as Map)),
|
|
);
|
|
|
|
SpotifyFriends _$SpotifyFriendsFromJson(Map json) => SpotifyFriends(
|
|
friends: (json['friends'] as List<dynamic>)
|
|
.map((e) => SpotifyFriendActivity.fromJson(
|
|
Map<String, dynamic>.from(e as Map)))
|
|
.toList(),
|
|
);
|