copyWith method
AgentConfigs
copyWith(
{ - String? displayName,
- String? description,
- String? image,
- FileConfig? fileConfig,
- List? customQuestions,
- bool? isSpeech2text,
- List<String>? languages,
- Map<String, dynamic>? colors,
- String? voice_code,
})
Implementation
AgentConfigs copyWith({
String? displayName,
String? description,
String? image,
FileConfig? fileConfig,
List<dynamic>? customQuestions,
bool? isSpeech2text,
List<String>? languages,
Map<String, dynamic>? colors, // Correct type here
String? voice_code,
}) {
return AgentConfigs(
displayName: displayName ?? this.displayName,
description: description ?? this.description,
image: image ?? this.image,
fileConfig: fileConfig ?? this.fileConfig,
customQuestions: customQuestions ?? this.customQuestions,
isSpeech2text: isSpeech2text ?? this.isSpeech2text,
languages: languages ?? this.languages,
colors: colors ?? this.colors,
voice_code: voice_code ?? this.voice_code,
);
}