mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
20 lines
384 B
Dart
20 lines
384 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'pendant.g.dart';
|
|
|
|
@JsonSerializable()
|
|
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) {
|
|
return _$PendantFromJson(json);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() => _$PendantToJson(this);
|
|
}
|