0417 0022

更新
This commit is contained in:
spasolreisa
2026-04-17 00:22:43 +08:00
parent 9ce601aa8d
commit fed18d264a
12 changed files with 1924 additions and 210 deletions

View File

@@ -13,9 +13,9 @@ class SongModel {
final String from;
// 难度详情映射 key通常是 "0"(Basic), "1"(Advanced) 等,或者 ut 的特殊id
final Map<String, dynamic>? dxLevels;
final Map<String, dynamic>? sdLevels;
final Map<String, dynamic>? utLevels;
final Map<String, dynamic>? dx;
final Map<String, dynamic>? sd;
final Map<String, dynamic>? ut;
SongModel({
required this.id,
@@ -30,9 +30,9 @@ class SongModel {
required this.bpm,
required this.releaseDate,
required this.from,
this.dxLevels,
this.sdLevels,
this.utLevels,
this.dx,
this.sd,
this.ut,
});
factory SongModel.fromJson(Map<String, dynamic> json) {
@@ -49,9 +49,9 @@ class SongModel {
bpm: json['bpm'] ?? 0,
releaseDate: json['releaseDate'] ?? '',
from: json['from'] ?? '',
dxLevels: json['dx'],
sdLevels: json['sd'],
utLevels: json['ut'],
dx: json['dx'],
sd: json['sd'],
ut: json['ut'],
);
}
}