|
|
@@ -9,11 +9,29 @@ part of 'intimacy_analyze_config_response.dart';
|
|
|
IntimacyAnalyzeConfigResponse _$IntimacyAnalyzeConfigResponseFromJson(
|
|
|
Map<String, dynamic> json,
|
|
|
) => IntimacyAnalyzeConfigResponse(
|
|
|
- config: IntimacyAnalyzeConfig.fromJson(
|
|
|
- json['config'] as Map<String, dynamic>,
|
|
|
- ),
|
|
|
+ json['defaultContent'] as String?,
|
|
|
+ (json['maxImageCount'] as num?)?.toInt(),
|
|
|
+ (json['minImageCount'] as num?)?.toInt(),
|
|
|
+ json['custom'] as bool?,
|
|
|
+ (json['maxCustomWords'] as num?)?.toInt(),
|
|
|
+ (json['minCustomWords'] as num?)?.toInt(),
|
|
|
+ (json['direction'] as List<dynamic>?)
|
|
|
+ ?.map((e) => IntimacyAnalyzeDirection.fromJson(e as Map<String, dynamic>))
|
|
|
+ .toList(),
|
|
|
+ (json['modes'] as List<dynamic>?)
|
|
|
+ ?.map((e) => AiModel.fromJson(e as Map<String, dynamic>))
|
|
|
+ .toList(),
|
|
|
);
|
|
|
|
|
|
Map<String, dynamic> _$IntimacyAnalyzeConfigResponseToJson(
|
|
|
IntimacyAnalyzeConfigResponse instance,
|
|
|
-) => <String, dynamic>{'config': instance.config};
|
|
|
+) => <String, dynamic>{
|
|
|
+ 'defaultContent': instance.defaultContent,
|
|
|
+ 'maxImageCount': instance.maxImageCount,
|
|
|
+ 'minImageCount': instance.minImageCount,
|
|
|
+ 'custom': instance.custom,
|
|
|
+ 'maxCustomWords': instance.maxCustomWords,
|
|
|
+ 'minCustomWords': instance.minCustomWords,
|
|
|
+ 'direction': instance.direction,
|
|
|
+ 'modes': instance.modes,
|
|
|
+};
|