intimacy_analyze_config_response.dart 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import 'package:json_annotation/json_annotation.dart';
  2. import '../../bean/ai_model.dart';
  3. import '../../bean/intimacy_analyze_direction.dart';
  4. part 'intimacy_analyze_config_response.g.dart';
  5. /// 亲密度配置
  6. @JsonSerializable()
  7. class IntimacyAnalyzeConfigResponse {
  8. /// 默认分析结果,markdown格式
  9. @JsonKey(name: 'defaultContent')
  10. String? defaultContent;
  11. /// 最大图片上传数
  12. @JsonKey(name: 'maxImageCount')
  13. int? maxImageCount;
  14. /// 最小图片上传数
  15. @JsonKey(name: 'minImageCount')
  16. int? minImageCount;
  17. /// 是否可以自定义方向
  18. @JsonKey(name: 'custom')
  19. bool? custom;
  20. /// 最大自定义字符数
  21. @JsonKey(name: 'maxCustomWords')
  22. int? maxCustomWords;
  23. /// 最小自定义字符数
  24. @JsonKey(name: 'minCustomWords')
  25. int? minCustomWords;
  26. /// 预测方向
  27. @JsonKey(name: 'direction')
  28. List<IntimacyAnalyzeDirection>? direction;
  29. /// 模型选项列表
  30. @JsonKey(name: 'modes')
  31. List<AiModel>? modes;
  32. IntimacyAnalyzeConfigResponse(
  33. this.defaultContent,
  34. this.maxImageCount,
  35. this.minImageCount,
  36. this.custom,
  37. this.maxCustomWords,
  38. this.minCustomWords,
  39. this.direction,
  40. this.modes,
  41. );
  42. factory IntimacyAnalyzeConfigResponse.fromJson(Map<String, dynamic> json) =>
  43. _$IntimacyAnalyzeConfigResponseFromJson(json);
  44. Map<String, dynamic> toJson() => _$IntimacyAnalyzeConfigResponseToJson(this);
  45. }