show forwarded dyn pic

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-18 20:50:38 +08:00
parent cc4100d74f
commit 448d7c38db
4 changed files with 73 additions and 29 deletions

View File

@@ -1175,13 +1175,13 @@ class DynamicOpusModel {
});
String? jumpUrl;
List<OpusPicsModel>? pics;
List<OpusPicModel>? pics;
SummaryModel? summary;
String? title;
DynamicOpusModel.fromJson(Map<String, dynamic> json) {
jumpUrl = json['jump_url'];
pics = (json['pics'] as List?)
?.map<OpusPicsModel>((e) => OpusPicsModel.fromJson(e))
?.map<OpusPicModel>((e) => OpusPicModel.fromJson(e))
.toList();
summary =
json['summary'] != null ? SummaryModel.fromJson(json['summary']) : null;
@@ -1219,7 +1219,7 @@ class RichTextNodeItem {
String? text;
String? type;
String? rid;
List<OpusPicsModel>? pics;
List<OpusPicModel>? pics;
String? jumpUrl;
RichTextNodeItem.fromJson(Map<String, dynamic> json) {
@@ -1231,7 +1231,7 @@ class RichTextNodeItem {
pics = json['pics'] == null
? null
: (json['pics'] as List?)
?.map((e) => OpusPicsModel.fromJson(e))
?.map((e) => OpusPicModel.fromJson(e))
.toList();
jumpUrl = json['jump_url'];
}
@@ -1267,26 +1267,23 @@ class DynamicNoneModel {
}
}
class OpusPicsModel {
OpusPicsModel({
class OpusPicModel {
OpusPicModel({
this.width,
this.height,
this.size,
this.src,
this.url,
});
int? width;
int? height;
int? size;
String? src;
String? url;
String? liveUrl;
OpusPicsModel.fromJson(Map<String, dynamic> json) {
OpusPicModel.fromJson(Map<String, dynamic> json) {
width = json['width'];
height = json['height'];
size = json['size'] != null ? json['size'].toInt() : 0;
src = json['src'];
url = json['url'];
liveUrl = json['live_url'];