mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
39
lib/models/dynamics/opus_detail/pendant.dart
Normal file
39
lib/models/dynamics/opus_detail/pendant.dart
Normal file
@@ -0,0 +1,39 @@
|
||||
class Pendant {
|
||||
int? expire;
|
||||
String? image;
|
||||
String? imageEnhance;
|
||||
String? imageEnhanceFrame;
|
||||
int? nPid;
|
||||
String? name;
|
||||
int? pid;
|
||||
|
||||
Pendant({
|
||||
this.expire,
|
||||
this.image,
|
||||
this.imageEnhance,
|
||||
this.imageEnhanceFrame,
|
||||
this.nPid,
|
||||
this.name,
|
||||
this.pid,
|
||||
});
|
||||
|
||||
factory Pendant.fromJson(Map<String, dynamic> json) => Pendant(
|
||||
expire: json['expire'] as int?,
|
||||
image: json['image'] as String?,
|
||||
imageEnhance: json['image_enhance'] as String?,
|
||||
imageEnhanceFrame: json['image_enhance_frame'] as String?,
|
||||
nPid: json['n_pid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
pid: json['pid'] as int?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'expire': expire,
|
||||
'image': image,
|
||||
'image_enhance': imageEnhance,
|
||||
'image_enhance_frame': imageEnhanceFrame,
|
||||
'n_pid': nPid,
|
||||
'name': name,
|
||||
'pid': pid,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user