mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 01:56:47 +08:00
opt opus rich text
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -825,24 +825,20 @@ class RichTextNodeItem {
|
||||
}
|
||||
|
||||
class Emoji {
|
||||
Emoji({
|
||||
this.iconUrl,
|
||||
this.size,
|
||||
this.text,
|
||||
this.type,
|
||||
});
|
||||
|
||||
String? iconUrl;
|
||||
String? webpUrl;
|
||||
String? gifUrl;
|
||||
double? size;
|
||||
// String? iconUrl;
|
||||
// String? webpUrl;
|
||||
// String? gifUrl;
|
||||
String? url;
|
||||
late num size;
|
||||
String? text;
|
||||
int? type;
|
||||
num? type;
|
||||
|
||||
Emoji.fromJson(Map<String, dynamic> json) {
|
||||
iconUrl = json['icon_url'];
|
||||
webpUrl = json['webp_url'];
|
||||
gifUrl = json['gif_url'];
|
||||
size = json['size'].toDouble();
|
||||
// iconUrl = json['icon_url'];
|
||||
// webpUrl = json['webp_url'];
|
||||
// gifUrl = json['gif_url'];
|
||||
url = json['webp_url'] ?? json['gif_url'] ?? json['icon_url'];
|
||||
size = json['size'] ?? 1;
|
||||
text = json['text'];
|
||||
type = json['type'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user