fix: 一些问题修复

This commit is contained in:
guozhigq
2023-08-10 22:14:40 +08:00
parent 779d3c7eb2
commit bc2e363d6a
3 changed files with 25 additions and 19 deletions

View File

@ -580,9 +580,11 @@ class UgcSeason {
intro = json['intro'];
signState = json['sign_state'];
attribute = json['attribute'];
sections = json['sections']
.map<SectionItem>((e) => SectionItem.fromJson(e))
.toList();
sections = json['sections'] != null
? json['sections']
.map<SectionItem>((e) => SectionItem.fromJson(e))
.toList()
: [];
stat = Stat.fromJson(json['stat']);
epCount = json['ep_count'];
seasonType = json['season_type'];