mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-29 14:56:29 +08:00
29
lib/models_new/triple/pgc_triple.dart
Normal file
29
lib/models_new/triple/pgc_triple.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
class PgcTriple {
|
||||
int? coin;
|
||||
int? coinNumber;
|
||||
int? favorite;
|
||||
int? fmid;
|
||||
int? follow;
|
||||
int? like;
|
||||
bool? relation;
|
||||
|
||||
PgcTriple({
|
||||
this.coin,
|
||||
this.coinNumber,
|
||||
this.favorite,
|
||||
this.fmid,
|
||||
this.follow,
|
||||
this.like,
|
||||
this.relation,
|
||||
});
|
||||
|
||||
factory PgcTriple.fromJson(Map<String, dynamic> json) => PgcTriple(
|
||||
coin: json["coin"],
|
||||
coinNumber: json["coin_number"],
|
||||
favorite: json["favorite"],
|
||||
fmid: json["fmid"],
|
||||
follow: json["follow"],
|
||||
like: json["like"],
|
||||
relation: json["relation"],
|
||||
);
|
||||
}
|
||||
29
lib/models_new/triple/ugc_triple.dart
Normal file
29
lib/models_new/triple/ugc_triple.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
class UgcTriple {
|
||||
bool? like;
|
||||
bool? coin;
|
||||
bool? fav;
|
||||
int? multiply;
|
||||
bool? isRisk;
|
||||
int? gaiaResType;
|
||||
dynamic gaiaData;
|
||||
|
||||
UgcTriple({
|
||||
this.like,
|
||||
this.coin,
|
||||
this.fav,
|
||||
this.multiply,
|
||||
this.isRisk,
|
||||
this.gaiaResType,
|
||||
this.gaiaData,
|
||||
});
|
||||
|
||||
factory UgcTriple.fromJson(Map<String, dynamic> json) => UgcTriple(
|
||||
like: json["like"],
|
||||
coin: json["coin"],
|
||||
fav: json["fav"],
|
||||
multiply: json["multiply"],
|
||||
isRisk: json["is_risk"],
|
||||
gaiaResType: json["gaia_res_type"],
|
||||
gaiaData: json["gaia_data"],
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user