song.dart 437 B

123456789101112131415161718192021
  1. class Song {
  2. int id;
  3. int track;
  4. String title;
  5. String artist;
  6. String album;
  7. int time;
  8. Song({this.id, this.track, this.title, this.artist, this.album, this.time});
  9. factory Song.fromJson(Map<String, dynamic> json) {
  10. return Song(
  11. id: json['id'],
  12. track: json['track'],
  13. title: json['title'],
  14. artist: json['artist'],
  15. album: json['album'],
  16. time: json['time'],
  17. );
  18. }
  19. }