mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
23 lines
462 B
Dart
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,
|
|
};
|
|
}
|