mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 00:28:38 +00:00
feat: show member article
This commit is contained in:
19
lib/models/space_article/pendant.dart
Normal file
19
lib/models/space_article/pendant.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user