mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
39
lib/models_new/pgc/pgc_info_model/user_status.dart
Normal file
39
lib/models_new/pgc/pgc_info_model/user_status.dart
Normal file
@@ -0,0 +1,39 @@
|
||||
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']),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user