feat: repost dynamic

This commit is contained in:
bggRGjQaUbCoE
2024-09-30 12:55:22 +08:00
parent 161d3244ba
commit 6077e51a4a
6 changed files with 336 additions and 17 deletions

View File

@@ -556,11 +556,9 @@ class DynamicOpusModel {
String? title;
DynamicOpusModel.fromJson(Map<String, dynamic> json) {
jumpUrl = json['jump_url'];
pics = json['pics'] != null
? json['pics']
.map<OpusPicsModel>((e) => OpusPicsModel.fromJson(e))
.toList()
: [];
pics = json['pics']
?.map<OpusPicsModel>((e) => OpusPicsModel.fromJson(e))
.toList();
summary =
json['summary'] != null ? SummaryModel.fromJson(json['summary']) : null;
title = json['title'];