Files
PiliPlus/lib/models/dynamics/article_view/pendant.dart
dom 40fb93f036 refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-04-26 14:54:22 +08:00

23 lines
462 B
Dart

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,
};
}