mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-26 05:20:09 +08:00
@@ -422,7 +422,9 @@ class ModuleAuthorModel extends Avatar {
|
|||||||
}
|
}
|
||||||
pubAction = json['pub_action'];
|
pubAction = json['pub_action'];
|
||||||
pubTime = json['pub_time'];
|
pubTime = json['pub_time'];
|
||||||
pubTs = json['pub_ts'] == 0 ? null : safeToInt(json['pub_ts']);
|
if (safeToInt(json['pub_ts']) case final pubTs? when pubTs > 0) {
|
||||||
|
this.pubTs = pubTs;
|
||||||
|
}
|
||||||
type = json['type'];
|
type = json['type'];
|
||||||
if (PendantAvatar.showDecorate) {
|
if (PendantAvatar.showDecorate) {
|
||||||
decorate = json['decorate'] == null
|
decorate = json['decorate'] == null
|
||||||
@@ -1340,7 +1342,9 @@ class DynamicStat {
|
|||||||
bool? status;
|
bool? status;
|
||||||
|
|
||||||
DynamicStat.fromJson(Map<String, dynamic> json) {
|
DynamicStat.fromJson(Map<String, dynamic> json) {
|
||||||
count = json['count'] == 0 ? null : safeToInt(json['count']);
|
if (safeToInt(json['count']) case final count? when count > 0) {
|
||||||
|
this.count = count;
|
||||||
|
}
|
||||||
status = json['status'];
|
status = json['status'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user