V2TimTopicInfo.fromJson constructor
V2TimTopicInfo.fromJson(
- Map json
Implementation
V2TimTopicInfo.fromJson(Map json) {
json = Utils.formatJson(json);
topicID = json['group_topic_info_topic_id'];
topicName = json['group_topic_info_topic_name'];
topicFaceUrl = json['group_topic_info_topic_face_url'];
introduction = json['group_topic_info_introduction'];
notification = json['group_topic_info_notification'];
isAllMute = json['group_topic_info_is_all_muted'];
selfMuteTime = json['group_topic_info_self_mute_time'];
customString = json['group_topic_info_custom_string'];
draftText = json['group_topic_info_draft_text'];
recvOpt = json['group_topic_info_recv_opt'];
unreadCount = json['group_topic_info_unread_count'];
messageReadSequence = json['topic_info_read_sequence'];
createTime = json['topic_create_time'];
defaultPermissions = json["default_permissions"] ?? 0;
if (json['group_topic_info_last_message'] != null) {
lastMessage = V2TimMessage.fromJson(json['group_topic_info_last_message']);
}
if (json['group_topic_info_group_at_info_array'] != null) {
groupAtInfoList = List.empty(growable: true);
json['group_topic_info_group_at_info_array'].forEach((v) {
groupAtInfoList!.add(V2TimGroupAtInfo.fromJson(v));
});
}
}