Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-19 13:44:59 +08:00
parent 8fd62cf2f3
commit 25adc4face
3 changed files with 31 additions and 26 deletions

View File

@@ -30,16 +30,16 @@ class Pic {
List<Pic>? pics;
int? style;
String? url;
num? width;
num? height;
double? width;
double? height;
num? size;
String? liveUrl;
bool? isLongPic;
Pic.fromJson(Map<String, dynamic> json) {
url = json['url'];
width = json['width'];
height = json['height'];
width = (json['width'] as num?)?.toDouble();
height = (json['height'] as num?)?.toDouble();
size = json['size'];
pics = (json['pics'] as List?)?.map((item) => Pic.fromJson(item)).toList();
style = json['style'];