mod: 代码整理

This commit is contained in:
orz12
2024-02-27 13:44:28 +08:00
parent 71828bef14
commit e0fe2e29f2
14 changed files with 18 additions and 17 deletions

View File

@@ -184,8 +184,9 @@ class VideoDetailData {
: List<dynamic>.from(descV2!.map((e) => e.toJson())),
"state": state,
"duration": duration,
"rights":
Map.from(rights!).map((k, v) => MapEntry<String, dynamic>(k, v)),
"rights": rights == null
? {}
: Map.from(rights!).map((k, v) => MapEntry<String, dynamic>(k, v)),
"owner": owner?.toJson(),
"stat": stat?.toJson(),
"dynamic": videoDynamic,