Files
pilipala/lib/models/video/reply/content.dart
2023-07-12 23:33:46 +08:00

32 lines
857 B
Dart

class ReplyContent {
ReplyContent(
{this.message,
this.atNameToMid, // @的用户的mid null
this.memebers, // 被@的用户List 如果有的话 []
this.emote, // 表情包 如果有的话 null
this.jumpUrl, // {}
this.pictures, // {}
this.vote,
this.richText});
String? message;
Map? atNameToMid;
List? memebers;
Map? emote;
Map? jumpUrl;
List? pictures;
Map? vote;
Map? richText;
ReplyContent.fromJson(Map<String, dynamic> json) {
message = json['message'].replaceAll('&gt;', '>').replaceAll('&#34;', '"');
atNameToMid = json['at_name_to_mid'] ?? {};
memebers = json['memebers'] ?? [];
emote = json['emote'] ?? {};
jumpUrl = json['jump_url'] ?? {};
pictures = json['pictures'] ?? [];
vote = json['vote'] ?? {};
richText = json['rich_text'] ?? {};
}
}