toJson method

Map<String, dynamic> toJson()

Convert object to JSON

Implementation

Map<String, dynamic> toJson() {
  return {
    'title': title,
    'artist': artist,
    'duration': duration,
    'path': path,
    'image': image,
  };
}