Files
PiliPlus/lib/models/space/pendant.dart
bggRGjQaUbCoE f77088b870 Refactor member page (#3)
* refactor: member page

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
2024-10-17 11:18:59 +08:00

34 lines
626 B
Dart

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