toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['group_topic_info_topic_id'] = topicID;
data['group_topic_info_topic_name'] = topicName;
data['group_topic_info_topic_face_url'] = topicFaceUrl;
data['group_topic_info_introduction'] = introduction;
data['group_topic_info_notification'] = notification;
data['group_topic_info_is_all_muted'] = isAllMute;
data['group_topic_info_self_mute_time'] = selfMuteTime;
data['group_topic_info_custom_string'] = customString;
data['group_topic_info_draft_text'] = draftText;
data['group_topic_info_unread_count'] = unreadCount;
data['group_topic_info_recv_opt'] = recvOpt;
data['group_topic_info_last_message'] = lastMessage?.toJson();
data['topic_info_read_sequence'] = messageReadSequence;
data['topic_create_time'] = createTime;
data['default_permissions'] = defaultPermissions ?? 0;
if (groupAtInfoList != null) {
data['group_topic_info_group_at_info_array'] = groupAtInfoList!.map((v) => v.toJson()).toList();
}
return data;
}