opt handle res

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-29 17:17:35 +08:00
parent b643cb1bd0
commit 924d51d41b
198 changed files with 3715 additions and 2001 deletions

View File

@@ -8,10 +8,8 @@ class MyEmote {
setting =
json['setting'] != null ? Setting.fromJson(json['setting']) : null;
if (json['packages'] != null) {
packages = <Packages>[];
json['packages'].forEach((v) {
packages!.add(Packages.fromJson(v));
});
packages =
(json['packages'] as List).map((e) => Packages.fromJson(e)).toList();
}
}
@@ -89,10 +87,7 @@ class Packages {
attr = json['attr'];
meta = json['meta'] != null ? PackagesMeta.fromJson(json['meta']) : null;
if (json['emote'] != null) {
emote = <Emote>[];
json['emote'].forEach((v) {
emote!.add(Emote.fromJson(v));
});
emote = (json['emote'] as List).map((e) => Emote.fromJson(e)).toList();
}
flags =
json['flags'] != null ? PackagesFlags.fromJson(json['flags']) : null;