import 'package:json_annotation/json_annotation.dart'; part 'chat_info_bean.g.dart'; ///聊天历史记录 @JsonSerializable(explicitToJson: true) class ChatInfoBean { int? id; String? role; String? content; String? timestamp; String? claudeType; int? messageType; String? userIcon; ChatInfoBean(this.id, this.role, this.content, this.timestamp, this.claudeType, this.messageType, this.userIcon); factory ChatInfoBean.fromJson(Map json) => _$ChatInfoBeanFromJson(json); Map toJson() => _$ChatInfoBeanToJson(this); }