intimacy_reply_analyze_response.dart 882 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import 'package:json_annotation/json_annotation.dart';
  2. import '../../bean/intimacy_reply_analyze_choice_item.dart';
  3. part 'intimacy_reply_analyze_response.g.dart';
  4. /// 识图回复响应
  5. @JsonSerializable()
  6. class IntimacyReplyAnalyzeResponse {
  7. @JsonKey(name: "id")
  8. String? id;
  9. @JsonKey(name: "object")
  10. String? object;
  11. /// 创建时间
  12. @JsonKey(name: "created")
  13. int? created;
  14. /// Ai模型
  15. @JsonKey(name: "model")
  16. int? model;
  17. /// 选择项列表
  18. @JsonKey(name: "choices")
  19. List<IntimacyReplyAnalyzeChoiceItem>? choices;
  20. IntimacyReplyAnalyzeResponse(
  21. this.id,
  22. this.object,
  23. this.created,
  24. this.model,
  25. this.choices,
  26. );
  27. factory IntimacyReplyAnalyzeResponse.fromJson(Map<String, dynamic> json) =>
  28. _$IntimacyReplyAnalyzeResponseFromJson(json);
  29. Map<String, dynamic> toJson() => _$IntimacyReplyAnalyzeResponseToJson(this);
  30. }