import 'Artist.dart'; class Music { final String _id; String? _title; String? _cover; String? _previewUrl; DateTime? _date; double? _duration; bool _explicit = false; List _artists; // Constructor Music(this._id, this._title, this._cover, this._previewUrl, this._date, this._duration, this._explicit, this._artists); //Getters and setters String? get id => _id; String? get title => _title; set title(String? value) { _title = value; } String? get cover => _cover; set cover(String? value) { _cover = value; } String? get previewUrl => _previewUrl; set previewUrl(String? value) { _previewUrl = value; } DateTime? get date => _date; set date(DateTime? value) { _date = value; } double? get duration => _duration; set duration(double? value) { _duration = value; } bool get explicit => _explicit; set explicit(bool value) { _explicit = value; } List get artists => _artists; set artists(List value) { _artists = value; } }