copyWith method

GetKnowledgeBaseTextResponseModel copyWith({
  1. String? id,
  2. String? name,
  3. KnowledgeBaseDocumentMetadataResponseModel? metadata,
  4. bool? promptInjectable,
  5. ResourceAccessInfo? accessInfo,
  6. String? extractedInnerHtml,
  7. 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);
}