copyWith method

AddKnowledgeBaseResponseModel copyWith({
  1. String? id,
  2. String? name,
  3. bool? promptInjectable,
})

Implementation

AddKnowledgeBaseResponseModel copyWith(
    {String? id, String? name, bool? promptInjectable}) {
  return AddKnowledgeBaseResponseModel(
      id: id ?? this.id,
      name: name ?? this.name,
      promptInjectable: promptInjectable ?? this.promptInjectable);
}