mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 11:06:51 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
22
lib/models/bfs_res/data.dart
Normal file
22
lib/models/bfs_res/data.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
class BfsResData {
|
||||
String? imageUrl;
|
||||
int? imageWidth;
|
||||
int? imageHeight;
|
||||
double? imgSize;
|
||||
|
||||
BfsResData({this.imageUrl, this.imageWidth, this.imageHeight, this.imgSize});
|
||||
|
||||
factory BfsResData.fromJson(Map<String, dynamic> json) => BfsResData(
|
||||
imageUrl: json['image_url'] as String?,
|
||||
imageWidth: json['image_width'] as int?,
|
||||
imageHeight: json['image_height'] as int?,
|
||||
imgSize: (json['img_size'] as num?)?.toDouble(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'image_url': imageUrl,
|
||||
'image_width': imageWidth,
|
||||
'image_height': imageHeight,
|
||||
'img_size': imgSize,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user