Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -33,22 +33,22 @@ class Elec {
});
factory Elec.fromJson(Map<String, dynamic> json) => Elec(
show: json['show'] as bool?,
total: json['total'] as int?,
count: json['count'] as int?,
elecNum: json['elec_num'] as int?,
list: (json['list'] as List<dynamic>?)
?.map((e) => ListItem.fromJson(e as Map<String, dynamic>))
.toList(),
elecSet: json['elec_set'] == null
? null
: ElecSet.fromJson(json['elec_set'] as Map<String, dynamic>),
state: json['state'] as int?,
upowerTitle: json['upower_title'] as String?,
upowerJumpUrl: json['upower_jump_url'] as String?,
upowerIconUrl: json['upower_icon_url'] as String?,
upowerState: json['upower_state'] as int?,
rankTitle: json['rank_title'] as String?,
rankUrl: json['rank_url'] as String?,
);
show: json['show'] as bool?,
total: json['total'] as int?,
count: json['count'] as int?,
elecNum: json['elec_num'] as int?,
list: (json['list'] as List<dynamic>?)
?.map((e) => ListItem.fromJson(e as Map<String, dynamic>))
.toList(),
elecSet: json['elec_set'] == null
? null
: ElecSet.fromJson(json['elec_set'] as Map<String, dynamic>),
state: json['state'] as int?,
upowerTitle: json['upower_title'] as String?,
upowerJumpUrl: json['upower_jump_url'] as String?,
upowerIconUrl: json['upower_icon_url'] as String?,
upowerState: json['upower_state'] as int?,
rankTitle: json['rank_title'] as String?,
rankUrl: json['rank_url'] as String?,
);
}