mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 10:08:41 +00:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
33
lib/models/space/pendant.dart
Normal file
33
lib/models/space/pendant.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'pendant.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Pendant {
|
||||
int? pid;
|
||||
String? name;
|
||||
String? image;
|
||||
int? expire;
|
||||
@JsonKey(name: 'image_enhance')
|
||||
String? imageEnhance;
|
||||
@JsonKey(name: 'image_enhance_frame')
|
||||
String? imageEnhanceFrame;
|
||||
@JsonKey(name: 'n_pid')
|
||||
int? nPid;
|
||||
|
||||
Pendant({
|
||||
this.pid,
|
||||
this.name,
|
||||
this.image,
|
||||
this.expire,
|
||||
this.imageEnhance,
|
||||
this.imageEnhanceFrame,
|
||||
this.nPid,
|
||||
});
|
||||
|
||||
factory Pendant.fromJson(Map<String, dynamic> json) {
|
||||
return _$PendantFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$PendantToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user