intimacy_analyze_response.dart 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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: "need")
  26. String? need;
  27. /// 聊天策略
  28. @JsonKey(name: "chatStrategy")
  29. String? chatStrategy;
  30. /// 预测方向占比
  31. @JsonKey(name: "directionRatio")
  32. String? directionRatio;
  33. /// 预测方向的名称
  34. @JsonKey(name: "directionName")
  35. String? directionName;
  36. /// 建议调整亲密度
  37. @JsonKey(name: "adjustIntimacy")
  38. String? adjustIntimacy;
  39. /// 情感调整方向
  40. @JsonKey(name: "adjustDirection")
  41. String? adjustDirection;
  42. /// 建议使用聊天人设
  43. @JsonKey(name: "chatCharacter")
  44. String? chatCharacter;
  45. /// 我的表面行为
  46. @JsonKey(name: "myBehavior")
  47. String? myBehavior;
  48. /// 对方的表面行为
  49. @JsonKey(name: "targetBehavior")
  50. String? targetBehavior;
  51. /// 帮助亲密度提升
  52. @JsonKey(name: "helpImprove")
  53. String? helpImprove;
  54. /// 沟通中我的优势
  55. @JsonKey(name: "myAdvantage")
  56. String? myAdvantage;
  57. /// 沟通中我的劣势
  58. @JsonKey(name: "myDisadvantage")
  59. String? myDisadvantage;
  60. IntimacyAnalyzeResponse(
  61. this.emotion,
  62. this.intimacyPhase,
  63. this.interaction,
  64. this.topic,
  65. this.respond,
  66. this.intimacyRatio,
  67. this.need,
  68. this.chatStrategy,
  69. this.directionRatio,
  70. this.directionName,
  71. this.adjustIntimacy,
  72. this.adjustDirection,
  73. this.chatCharacter,
  74. this.myBehavior,
  75. this.targetBehavior,
  76. this.helpImprove,
  77. this.myAdvantage,
  78. this.myDisadvantage,
  79. );
  80. factory IntimacyAnalyzeResponse.fromJson(Map<String, dynamic> json) =>
  81. _$IntimacyAnalyzeResponseFromJson(json);
  82. Map<String, dynamic> toJson() => _$IntimacyAnalyzeResponseToJson(this);
  83. }