mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-26 13:25:49 +08:00
opt pgc/pugv intro panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
26
lib/models_new/pgc/pgc_info_model/brief.dart
Normal file
26
lib/models_new/pgc/pgc_info_model/brief.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
class Brief {
|
||||
List<Img>? img;
|
||||
|
||||
Brief({
|
||||
this.img,
|
||||
});
|
||||
|
||||
factory Brief.fromJson(Map<String, dynamic> json) => Brief(
|
||||
img: (json['img'] as List?)?.map((e) => Img.fromJson(e)).toList(),
|
||||
);
|
||||
}
|
||||
|
||||
class Img {
|
||||
num? aspectRatio;
|
||||
String? url;
|
||||
|
||||
Img({
|
||||
this.aspectRatio,
|
||||
this.url,
|
||||
});
|
||||
|
||||
factory Img.fromJson(Map<String, dynamic> json) => Img(
|
||||
aspectRatio: json['aspect_ratio'],
|
||||
url: json['url'] as String?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user