Compare commits
No commits in common. '1bab49f99747edab8591e61fdd740554bc8d60d8' and '874c491b0d56dbdb61f365a6d584f029985b5ef2' have entirely different histories.
1bab49f997
...
874c491b0d
@ -1,43 +0,0 @@
|
||||
class MyMusicListBean {
|
||||
int? code;
|
||||
String? msg;
|
||||
List<DataBean>? data;
|
||||
|
||||
MyMusicListBean.formMap(Map map) {
|
||||
code = map['code'];
|
||||
msg = map['msg'];
|
||||
if (map['data'] is! List) return;
|
||||
|
||||
data = (map['data'] as List)
|
||||
.map((item) => DataBean._formMap(item))
|
||||
.toList();
|
||||
}
|
||||
}
|
||||
|
||||
class DataBean {
|
||||
int? songlistId;
|
||||
SongDetails? musicDetail; // 修改为单个SongDetails对象
|
||||
|
||||
DataBean._formMap(Map map) {
|
||||
songlistId = map['songlistId'];
|
||||
musicDetail = SongDetails._formMap(map['musicDetail']); // 直接处理单个对象
|
||||
}
|
||||
}
|
||||
|
||||
class SongDetails {
|
||||
int? id;
|
||||
String? name;
|
||||
String? coverPath;
|
||||
String? musicPath;
|
||||
String? singerName;
|
||||
String? uploadUserName;
|
||||
|
||||
SongDetails._formMap(Map map) {
|
||||
id = map['id'];
|
||||
name = map['name'];
|
||||
coverPath = map['coverPath'];
|
||||
musicPath = map['musicPath'];
|
||||
singerName = map['singerName'];
|
||||
uploadUserName = map['uploadUserName'];
|
||||
}
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
class MyWorks {
|
||||
int? code;
|
||||
String? msg;
|
||||
List<DataBean>? data;
|
||||
|
||||
MyWorks.formMap(Map map) {
|
||||
code = map['code'];
|
||||
msg = map['msg'];
|
||||
if (map['data'] == null) return;
|
||||
|
||||
List<dynamic>? dataList = map['data'];
|
||||
if (dataList == null) return;
|
||||
|
||||
data = dataList
|
||||
.map((item) => DataBean._formMap(item))
|
||||
.toList();
|
||||
}
|
||||
}
|
||||
|
||||
class DataBean {
|
||||
int? id;
|
||||
String? name;
|
||||
String? coverPath;
|
||||
String? musicPath;
|
||||
String? singerName;
|
||||
|
||||
DataBean._formMap(Map map) {
|
||||
id = map['id'];
|
||||
name = map['name'];
|
||||
coverPath = map['coverPath'];
|
||||
musicPath = map['musicPath'];
|
||||
singerName = map['singerName'];
|
||||
}
|
||||
}
|
Loading…
Reference in new issue