improve album tests

This commit is contained in:
austinried
2025-11-02 18:35:13 +09:00
parent c900c9750a
commit 2df86f4faa
9 changed files with 399 additions and 37 deletions

View File

@@ -3,6 +3,7 @@
import 'package:freezed_annotation/freezed_annotation.dart';
part 'models.freezed.dart';
part 'models.g.dart';
mixin Starred {
DateTime? get starred;
@@ -67,6 +68,9 @@ abstract class SourceItem with _$SourceItem {
String? genre,
String? coverArt,
}) = SourceSong;
factory SourceItem.fromJson(Map<String, dynamic> json) =>
_$SourceItemFromJson(json);
}
@freezed
@@ -76,4 +80,7 @@ abstract class SourcePlaylistSong with _$SourcePlaylistSong {
required String songId,
required int position,
}) = _SourcePlaylistSong;
factory SourcePlaylistSong.fromJson(Map<String, dynamic> json) =>
_$SourcePlaylistSongFromJson(json);
}