copyWith method

AgentConfigs copyWith({
  1. String? displayName,
  2. String? description,
  3. String? image,
  4. FileConfig? fileConfig,
  5. List? customQuestions,
  6. bool? isSpeech2text,
  7. List<String>? languages,
  8. Map<String, dynamic>? colors,
  9. 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,
  );
}