intimacy_analyze_reply_config_response.dart 955 B

12345678910111213141516171819202122232425262728293031
  1. import 'package:json_annotation/json_annotation.dart';
  2. import 'package:keyboard/data/api/response/for_me_bean.dart';
  3. import 'package:keyboard/data/api/response/for_ta_bean.dart';
  4. import 'package:keyboard/data/api/response/tone_bean.dart';
  5. import '../../bean/ai_model.dart';
  6. import '../../bean/intimacy_analyze_direction.dart';
  7. import '../../bean/reply_mode.dart';
  8. part 'intimacy_analyze_reply_config_response.g.dart';
  9. /// 亲密度-识图回复配置
  10. @JsonSerializable()
  11. class IntimacyAnalyzeReplyConfigResponse {
  12. /// 语气列表
  13. @JsonKey(name: 'tones')
  14. List<ToneBean>? tones;
  15. /// 模式
  16. @JsonKey(name: "modes")
  17. List<ReplyMode> modes;
  18. IntimacyAnalyzeReplyConfigResponse(this.tones, this.modes);
  19. factory IntimacyAnalyzeReplyConfigResponse.fromJson(
  20. Map<String, dynamic> json,
  21. ) => _$IntimacyAnalyzeReplyConfigResponseFromJson(json);
  22. Map<String, dynamic> toJson() =>
  23. _$IntimacyAnalyzeReplyConfigResponseToJson(this);
  24. }