mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-02 16:19:44 +08:00
@@ -2,14 +2,14 @@ class BaseEmote {
|
||||
late String url;
|
||||
late String emoticonUnique;
|
||||
late double width;
|
||||
double? height;
|
||||
late double height;
|
||||
late final isUpower = emoticonUnique.startsWith('upower_');
|
||||
|
||||
BaseEmote.fromJson(Map<String, dynamic> json) {
|
||||
url = json['url'];
|
||||
emoticonUnique = json['emoticon_unique'];
|
||||
width = (json['width'] as num).toDouble();
|
||||
height = (json['height'] as num?)?.toDouble();
|
||||
height = (json['height'] as num?)?.toDouble() ?? width;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => <String, dynamic>{
|
||||
|
||||
Reference in New Issue
Block a user