copyWith method
GetKnowledgeBaseTextResponseModel
copyWith({
- String? id,
- String? name,
- KnowledgeBaseDocumentMetadataResponseModel? metadata,
- bool? promptInjectable,
- ResourceAccessInfo? accessInfo,
- String? extractedInnerHtml,
- String? type,
Implementation
GetKnowledgeBaseTextResponseModel copyWith(
{String? id,
String? name,
KnowledgeBaseDocumentMetadataResponseModel? metadata,
bool? promptInjectable,
ResourceAccessInfo? accessInfo,
String? extractedInnerHtml,
String? type}) {
return GetKnowledgeBaseTextResponseModel(
id: id ?? this.id,
name: name ?? this.name,
metadata: metadata ?? this.metadata,
promptInjectable: promptInjectable ?? this.promptInjectable,
accessInfo: accessInfo ?? this.accessInfo,
extractedInnerHtml: extractedInnerHtml ?? this.extractedInnerHtml,
type: type ?? this.type);
}