mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-30 23:29:47 +08:00
@@ -6,8 +6,8 @@ class BadgeInfo {
|
||||
BadgeInfo({this.bgColor, this.bgColorNight, this.text});
|
||||
|
||||
factory BadgeInfo.fromJson(Map<String, dynamic> json) => BadgeInfo(
|
||||
bgColor: json['bg_color'] as String?,
|
||||
bgColorNight: json['bg_color_night'] as String?,
|
||||
text: json['text'] as String?,
|
||||
);
|
||||
bgColor: json['bg_color'] as String?,
|
||||
bgColorNight: json['bg_color_night'] as String?,
|
||||
text: json['text'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@ class Data {
|
||||
Data({this.list, this.note, this.seasonType});
|
||||
|
||||
factory Data.fromJson(Map<String, dynamic> json) => Data(
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => PgcRankItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
note: json['note'] as String?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
);
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => PgcRankItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
note: json['note'] as String?,
|
||||
seasonType: json['season_type'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class IconFont {
|
||||
IconFont({this.name, this.text});
|
||||
|
||||
factory IconFont.fromJson(Map<String, dynamic> json) => IconFont(
|
||||
name: json['name'] as String?,
|
||||
text: json['text'] as String?,
|
||||
);
|
||||
name: json['name'] as String?,
|
||||
text: json['text'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class NewEp {
|
||||
NewEp({this.cover, this.indexShow});
|
||||
|
||||
factory NewEp.fromJson(Map<String, dynamic> json) => NewEp(
|
||||
cover: json['cover'] as String?,
|
||||
indexShow: json['index_show'] as String?,
|
||||
);
|
||||
cover: json['cover'] as String?,
|
||||
indexShow: json['index_show'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@ class Stat {
|
||||
Stat({this.danmaku, this.follow, this.seriesFollow, this.view});
|
||||
|
||||
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
|
||||
danmaku: json['danmaku'] as int?,
|
||||
follow: (json['follow'] as int?) ?? 0,
|
||||
seriesFollow: json['series_follow'] as int?,
|
||||
view: (json['view'] as int?) ?? 0,
|
||||
);
|
||||
danmaku: json['danmaku'] as int?,
|
||||
follow: (json['follow'] as int?) ?? 0,
|
||||
seriesFollow: json['series_follow'] as int?,
|
||||
view: (json['view'] as int?) ?? 0,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user