intimacy_analyze_response.dart 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. /// 预测方向的名称
  40. @JsonKey(name: "directionName")
  41. String? directionName;
  42. IntimacyAnalyzeResponse(this.emotion, this.intimacyPhase, this.interaction,
  43. this.topic, this.respond, this.intimacyRatio, this.direction, this.need,
  44. this.shortChat, this.longChat, this.summary, this.directionName);
  45. factory IntimacyAnalyzeResponse.fromJson(Map<String, dynamic> json) =>
  46. _$IntimacyAnalyzeResponseFromJson(json);
  47. Map<String, dynamic> toJson() => _$IntimacyAnalyzeResponseToJson(this);
  48. }