mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-15 23:10:09 +08:00
@@ -422,7 +422,9 @@ class ModuleAuthorModel extends Avatar {
|
||||
}
|
||||
pubAction = json['pub_action'];
|
||||
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'];
|
||||
if (PendantAvatar.showDecorate) {
|
||||
decorate = json['decorate'] == null
|
||||
@@ -1340,7 +1342,9 @@ class DynamicStat {
|
||||
bool? status;
|
||||
|
||||
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'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user