mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-05 09:37:52 +08:00
feat: show member article
This commit is contained in:
29
lib/models/space_article/nameplate.dart
Normal file
29
lib/models/space_article/nameplate.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'nameplate.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Nameplate {
|
||||
int? nid;
|
||||
String? name;
|
||||
String? image;
|
||||
@JsonKey(name: 'image_small')
|
||||
String? imageSmall;
|
||||
String? level;
|
||||
String? condition;
|
||||
|
||||
Nameplate({
|
||||
this.nid,
|
||||
this.name,
|
||||
this.image,
|
||||
this.imageSmall,
|
||||
this.level,
|
||||
this.condition,
|
||||
});
|
||||
|
||||
factory Nameplate.fromJson(Map<String, dynamic> json) {
|
||||
return _$NameplateFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$NameplateToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user