22 lines
575 B
Dart
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);
|
|
}
|