clean up models

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-05 12:10:18 +08:00
parent b897103af0
commit 279f21857d
308 changed files with 156 additions and 6243 deletions

View File

@@ -2,17 +2,13 @@ import 'package:PiliPlus/models_new/user_real_name/reject_page.dart';
class UserRealNameData {
String? name;
String? namePrefix;
bool? show;
RejectPage? rejectPage;
UserRealNameData({this.name, this.namePrefix, this.show, this.rejectPage});
UserRealNameData({this.name, this.rejectPage});
factory UserRealNameData.fromJson(Map<String, dynamic> json) =>
UserRealNameData(
name: json['name'] as String?,
namePrefix: json['name_prefix'] as String?,
show: json['show'] as bool?,
rejectPage: json['reject_page'] == null
? null
: RejectPage.fromJson(json['reject_page'] as Map<String, dynamic>),