Files
PiliPlus/lib/models_new/pgc/pgc_info_model/user_status.dart
bggRGjQaUbCoE b960359a39 opt models
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-06-05 14:44:56 +08:00

40 lines
1010 B
Dart

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;
UserStatus({
this.areaLimit,
this.banAreaShow,
this.follow,
this.followStatus,
this.login,
this.pay,
this.payPackPaid,
this.sponsor,
this.progress,
});
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']),
);
}