mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-22 11:30:13 +08:00
@@ -428,9 +428,10 @@ class ModuleAuthorModel extends Avatar {
|
||||
}
|
||||
type = json['type'];
|
||||
if (PendantAvatar.showDecorate) {
|
||||
decorate = json['decorate'] == null
|
||||
? null
|
||||
: Decorate.fromJson(json['decorate']);
|
||||
final decorate = json['decorate'] ?? json['decoration_card'];
|
||||
if (decorate != null) {
|
||||
this.decorate = Decorate.fromJson(decorate);
|
||||
}
|
||||
} else {
|
||||
pendant = null;
|
||||
}
|
||||
@@ -465,7 +466,7 @@ class Fan {
|
||||
|
||||
factory Fan.fromJson(Map<String, dynamic> json) => Fan(
|
||||
color: json["color"],
|
||||
numStr: json["num_str"],
|
||||
numStr: json["num_str"] ?? json['num_desc'],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user