mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
@@ -6,8 +6,8 @@ class LiveEmoteData {
|
||||
LiveEmoteData({this.data});
|
||||
|
||||
factory LiveEmoteData.fromJson(Map<String, dynamic> json) => LiveEmoteData(
|
||||
data: (json['data'] as List<dynamic>?)
|
||||
?.map((e) => LiveEmoteDatum.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
data: (json['data'] as List<dynamic>?)
|
||||
?.map((e) => LiveEmoteDatum.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -12,10 +12,10 @@ class LiveEmoteDatum {
|
||||
});
|
||||
|
||||
factory LiveEmoteDatum.fromJson(Map<String, dynamic> json) => LiveEmoteDatum(
|
||||
emoticons: (json['emoticons'] as List<dynamic>?)
|
||||
?.map((e) => Emoticon.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
pkgType: json['pkg_type'] as int?,
|
||||
currentCover: json['current_cover'] as String?,
|
||||
);
|
||||
emoticons: (json['emoticons'] as List<dynamic>?)
|
||||
?.map((e) => Emoticon.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
pkgType: json['pkg_type'] as int?,
|
||||
currentCover: json['current_cover'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -14,10 +14,10 @@ class Emoticon {
|
||||
});
|
||||
|
||||
factory Emoticon.fromJson(Map<String, dynamic> json) => Emoticon(
|
||||
emoji: json['emoji'] as String?,
|
||||
url: json['url'] as String?,
|
||||
width: json['width'] as int?,
|
||||
height: json['height'] as int?,
|
||||
emoticonUnique: json['emoticon_unique'] as String?,
|
||||
);
|
||||
emoji: json['emoji'] as String?,
|
||||
url: json['url'] as String?,
|
||||
width: json['width'] as int?,
|
||||
height: json['height'] as int?,
|
||||
emoticonUnique: json['emoticon_unique'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user