import 'package:json_annotation/json_annotation.dart';

import '../../bean/analyze_choice_item.dart';

part 'intimacy_chat_analyze_response.g.dart';

/// 识图回复响应
@JsonSerializable()
class IntimacyChatAnalyzeResponse {
  @JsonKey(name: "id")
  String? id;

  @JsonKey(name: "object")
  String? object;

  /// 创建时间
  @JsonKey(name: "created")
  int? created;

  /// Ai模型
  @JsonKey(name: "model")
  String? model;

  /// 选择项列表
  @JsonKey(name: "choices")
  List<AnalyzeChoiceItem>? choices;

  IntimacyChatAnalyzeResponse(
    this.id,
    this.object,
    this.created,
    this.model,
    this.choices,
  );

  factory IntimacyChatAnalyzeResponse.fromJson(Map<String, dynamic> json) =>
      _$IntimacyChatAnalyzeResponseFromJson(json);

  Map<String, dynamic> toJson() => _$IntimacyChatAnalyzeResponseToJson(this);
}
