mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 08:36:17 +08:00
51 lines
1.1 KiB
Dart
51 lines
1.1 KiB
Dart
class Rights {
|
|
int? bp;
|
|
int? elec;
|
|
int? download;
|
|
int? movie;
|
|
int? pay;
|
|
int? hd5;
|
|
int? noReprint;
|
|
int? autoplay;
|
|
int? ugcPay;
|
|
int? isCooperation;
|
|
int? ugcPayPreview;
|
|
int? noBackground;
|
|
int? arcPay;
|
|
int? payFreeWatch;
|
|
|
|
Rights({
|
|
this.bp,
|
|
this.elec,
|
|
this.download,
|
|
this.movie,
|
|
this.pay,
|
|
this.hd5,
|
|
this.noReprint,
|
|
this.autoplay,
|
|
this.ugcPay,
|
|
this.isCooperation,
|
|
this.ugcPayPreview,
|
|
this.noBackground,
|
|
this.arcPay,
|
|
this.payFreeWatch,
|
|
});
|
|
|
|
factory Rights.fromJson(Map<String, dynamic> json) => Rights(
|
|
bp: json['bp'] as int?,
|
|
elec: json['elec'] as int?,
|
|
download: json['download'] as int?,
|
|
movie: json['movie'] as int?,
|
|
pay: json['pay'] as int?,
|
|
hd5: json['hd5'] as int?,
|
|
noReprint: json['no_reprint'] as int?,
|
|
autoplay: json['autoplay'] as int?,
|
|
ugcPay: json['ugc_pay'] as int?,
|
|
isCooperation: json['is_cooperation'] as int?,
|
|
ugcPayPreview: json['ugc_pay_preview'] as int?,
|
|
noBackground: json['no_background'] as int?,
|
|
arcPay: json['arc_pay'] as int?,
|
|
payFreeWatch: json['pay_free_watch'] as int?,
|
|
);
|
|
}
|