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.
MTMusic/lib/models/getAllSongs_bean.dart

43 lines
1014 B

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;
List<dynamic> dataList = map['data'];
data = dataList.map((item) => DataBean._formMap(item)).toList();
}
}
class DataBean {
int? songlistId;
List<SongDetails>? musicDetail;
DataBean._formMap(Map map) {
songlistId = map['songlistId'];
List<dynamic>? musicDetailList = map['musicDetail'];
if (musicDetailList == null) return;
musicDetail = musicDetailList.map((item) => SongDetails._formMap(item)).toList();
}
}
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'];
}
}