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: "directionRatio") String? directionRatio; /// 情感需求 @JsonKey(name: "need") String? need; /// 聊天策略 @JsonKey(name: "chatStrategy") String? chatStrategy; /// 总结 @JsonKey(name: "summary") String? summary; /// 预测方向的名称 @JsonKey(name: "directionName") String? directionName; IntimacyAnalyzeResponse( this.emotion, this.intimacyPhase, this.interaction, this.topic, this.respond, this.intimacyRatio, this.directionRatio, this.need, this.chatStrategy, this.summary, this.directionName, ); factory IntimacyAnalyzeResponse.fromJson(Map json) => _$IntimacyAnalyzeResponseFromJson(json); Map toJson() => _$IntimacyAnalyzeResponseToJson(this); }