intimacy_analyze_response.dart 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'intimacy_analyze_response.g.dart';
  3. /// 分析亲密度的响应
  4. @JsonSerializable()
  5. class IntimacyAnalyzeResponse {
  6. /// 情感亲密度
  7. @JsonKey(name: "emotion")
  8. String? emotion;
  9. /// 亲密度阶段
  10. @JsonKey(name: "intimacyPhase")
  11. String? intimacyPhase;
  12. /// 互动好感度
  13. @JsonKey(name: "interaction")
  14. String? interaction;
  15. /// 话题情感浓度
  16. @JsonKey(name: "topic")
  17. String? topic;
  18. /// 情绪回应
  19. @JsonKey(name: "respond")
  20. String? respond;
  21. /// 亲密词占比
  22. @JsonKey(name: "intimacyRatio")
  23. String? intimacyRatio;
  24. /// 预测方向
  25. @JsonKey(name: "direction")
  26. String? direction;
  27. /// 情感需求
  28. @JsonKey(name: "need")
  29. String? need;
  30. /// 短期聊天策略
  31. @JsonKey(name: "shortChat")
  32. String? shortChat;
  33. /// 长期聊天策略
  34. @JsonKey(name: "longChat")
  35. String? longChat;
  36. /// 总结
  37. @JsonKey(name: "summary")
  38. String? summary;
  39. IntimacyAnalyzeResponse(this.emotion, this.intimacyPhase, this.interaction,
  40. this.topic, this.respond, this.intimacyRatio, this.direction, this.need,
  41. this.shortChat, this.longChat, this.summary);
  42. factory IntimacyAnalyzeResponse.fromJson(Map<String, dynamic> json) =>
  43. _$IntimacyAnalyzeResponseFromJson(json);
  44. Map<String, dynamic> toJson() => _$IntimacyAnalyzeResponseToJson(this);
  45. }