mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
35
lib/models/space/level_info.dart
Normal file
35
lib/models/space/level_info.dart
Normal file
@@ -0,0 +1,35 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'senior_inquiry.dart';
|
||||
|
||||
part 'level_info.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class LevelInfo {
|
||||
@JsonKey(name: 'current_level')
|
||||
int? currentLevel;
|
||||
@JsonKey(name: 'current_min')
|
||||
int? currentMin;
|
||||
@JsonKey(name: 'current_exp')
|
||||
int? currentExp;
|
||||
@JsonKey(name: 'next_exp')
|
||||
dynamic nextExp;
|
||||
int? identity;
|
||||
@JsonKey(name: 'senior_inquiry')
|
||||
SeniorInquiry? seniorInquiry;
|
||||
|
||||
LevelInfo({
|
||||
this.currentLevel,
|
||||
this.currentMin,
|
||||
this.currentExp,
|
||||
this.nextExp,
|
||||
this.identity,
|
||||
this.seniorInquiry,
|
||||
});
|
||||
|
||||
factory LevelInfo.fromJson(Map<String, dynamic> json) {
|
||||
return _$LevelInfoFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$LevelInfoToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user