FondleTalk/lib/beans/chat_info_bean.dart
2024-07-18 00:12:09 +08:00

22 lines
575 B
Dart

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<String, dynamic> json) => _$ChatInfoBeanFromJson(json);
Map<String, dynamic> toJson() => _$ChatInfoBeanToJson(this);
}