mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
29 lines
829 B
Dart
29 lines
829 B
Dart
part of 'metadata.dart';
|
|
|
|
@freezed
|
|
class SpotubeFullArtistObject with _$SpotubeFullArtistObject {
|
|
factory SpotubeFullArtistObject({
|
|
required String id,
|
|
required String name,
|
|
required String externalUri,
|
|
@Default([]) List<SpotubeImageObject> images,
|
|
List<String>? genres,
|
|
int? followers,
|
|
}) = _SpotubeFullArtistObject;
|
|
|
|
factory SpotubeFullArtistObject.fromJson(Map<String, dynamic> json) =>
|
|
_$SpotubeFullArtistObjectFromJson(json);
|
|
}
|
|
|
|
@freezed
|
|
class SpotubeSimpleArtistObject with _$SpotubeSimpleArtistObject {
|
|
factory SpotubeSimpleArtistObject({
|
|
required String id,
|
|
required String name,
|
|
required String externalUri,
|
|
}) = _SpotubeSimpleArtistObject;
|
|
|
|
factory SpotubeSimpleArtistObject.fromJson(Map<String, dynamic> json) =>
|
|
_$SpotubeSimpleArtistObjectFromJson(json);
|
|
}
|