mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
20 lines
376 B
Dart
20 lines
376 B
Dart
import 'package:spotify/spotify.dart';
|
|
|
|
extension ArtistJson on ArtistSimple {
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
"href": href,
|
|
"id": id,
|
|
"name": name,
|
|
"type": type,
|
|
"uri": uri,
|
|
};
|
|
}
|
|
}
|
|
|
|
extension ArtistExtension on List<ArtistSimple> {
|
|
String asString() {
|
|
return map((e) => e.name?.replaceAll(",", " ")).join(", ");
|
|
}
|
|
}
|