You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
917 B
37 lines
917 B
class MusicsListBean {
|
|
int? code;
|
|
String? msg;
|
|
List<MusicItem>? data;
|
|
|
|
MusicsListBean.fromMap(Map map) {
|
|
code = map['code'];
|
|
msg = map['msg'];
|
|
if (map['data'] != null && map['data'] is List) {
|
|
data = (map['data'] as List).map((item) => MusicItem.fromMap(item)).toList();
|
|
}
|
|
}
|
|
}
|
|
|
|
class MusicItem {
|
|
int? id;
|
|
String? name;
|
|
String? coverPath;
|
|
String? musicPath;
|
|
String? singerName;
|
|
String? uploadUserName;
|
|
bool? likeOrNot;
|
|
bool? collectOrNot;
|
|
String? mid;
|
|
|
|
MusicItem.fromMap(Map map) {
|
|
id = map['id'];
|
|
name = map['name'];
|
|
coverPath = map['coverPath'] == '' ? 'https://api.aspark.cc/image/1/6759856d288fd.jpg?1' : map['coverPath'];
|
|
musicPath = map['musicPath'];
|
|
singerName = map['singerName'];
|
|
uploadUserName = map['uploadUserName'] ?? '';
|
|
likeOrNot = map['likeOrNot'];
|
|
collectOrNot = map['collectOrNot'];
|
|
mid = map['mid'] ?? '';
|
|
}
|
|
} |