import 'package:json_annotation/json_annotation.dart'; part 'intimacy_analyze_response.g.dart'; /// 分析亲密度的响应 @JsonSerializable() class IntimacyAnalyzeResponse { /// 情感亲密度 @JsonKey(name: "emotion") String? emotion; /// 亲密度阶段 @JsonKey(name: "intimacyPhase") String? intimacyPhase; /// 互动好感度 @JsonKey(name: "interaction") String? interaction; /// 话题情感浓度 @JsonKey(name: "topic") String? topic; /// 情绪回应 @JsonKey(name: "respond") String? respond; /// 亲密词占比 @JsonKey(name: "intimacyRatio") String? intimacyRatio; /// 预测方向 @JsonKey(name: "direction") String? direction; /// 情感需求 @JsonKey(name: "need") String? need; /// 短期聊天策略 @JsonKey(name: "shortChat") String? shortChat; /// 长期聊天策略 @JsonKey(name: "longChat") String? longChat; /// 总结 @JsonKey(name: "summary") String? summary; /// 预测方向的名称 @JsonKey(name: "directionName") String? directionName; IntimacyAnalyzeResponse(this.emotion, this.intimacyPhase, this.interaction, this.topic, this.respond, this.intimacyRatio, this.direction, this.need, this.shortChat, this.longChat, this.summary, this.directionName); factory IntimacyAnalyzeResponse.fromJson(Map json) => _$IntimacyAnalyzeResponseFromJson(json); Map toJson() => _$IntimacyAnalyzeResponseToJson(this); }