mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 01:58:36 +00:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
22
lib/models/dynamics/article_view/pendant.dart
Normal file
22
lib/models/dynamics/article_view/pendant.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
class Pendant {
|
||||
int? pid;
|
||||
String? name;
|
||||
String? image;
|
||||
int? expire;
|
||||
|
||||
Pendant({this.pid, this.name, this.image, this.expire});
|
||||
|
||||
factory Pendant.fromJson(Map<String, dynamic> json) => Pendant(
|
||||
pid: json['pid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
image: json['image'] as String?,
|
||||
expire: json['expire'] as int?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'pid': pid,
|
||||
'name': name,
|
||||
'image': image,
|
||||
'expire': expire,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user