V2TimTopicInfo.fromJson constructor
V2TimTopicInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
V2TimTopicInfo.fromJson(Map<String, dynamic> json) {
topicID = json['topicID'];
topicName = json['topicName'];
topicFaceUrl = json['topicFaceURL'];
introduction = json['introduction'];
notification = json['notification'];
isAllMute = json['isAllMute'];
selfMuteTime = json['selfMuteTime'];
customString = json['customString'];
draftText = json['draftText'];
unreadCount = json['unreadCount'];
if (json['lastMessage'] != null) {
lastMessage = V2TimMessage.fromJson(json['lastMessage']);
}
if (json['groupAtInfoList'] != null) {
groupAtInfoList = List.empty(growable: true);
json['groupAtInfoList'].forEach((v) {
groupAtInfoList!.add(V2TimGroupAtInfo.fromJson(v));
});
}
}