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

@@ -1,39 +1,15 @@
import 'package:PiliPlus/models_new/pgc/pgc_info_model/user_progress.dart';
class UserStatus {
int? areaLimit;
int? banAreaShow;
int? follow;
int? followStatus;
int? login;
int? pay;
int? payPackPaid;
int? sponsor;
UserProgress? progress;
int? favored;
UserStatus({
this.areaLimit,
this.banAreaShow,
this.follow,
this.followStatus,
this.login,
this.pay,
this.payPackPaid,
this.sponsor,
this.progress,
this.favored,
});
factory UserStatus.fromJson(Map<String, dynamic> json) => UserStatus(
areaLimit: json['area_limit'] as int?,
banAreaShow: json['ban_area_show'] as int?,
follow: json['follow'] as int?,
followStatus: json['follow_status'] as int?,
login: json['login'] as int?,
pay: json['pay'] as int?,
payPackPaid: json['pay_pack_paid'] as int?,
sponsor: json['sponsor'] as int?,
progress: json['progress'] == null
? null
: UserProgress.fromJson(json['progress']),