copyWithWrapped method

GetKnowledgeBaseURLResponseModel copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? name,
  3. Wrapped<KnowledgeBaseDocumentMetadataResponseModel>? metadata,
  4. Wrapped<bool>? promptInjectable,
  5. Wrapped<ResourceAccessInfo>? accessInfo,
  6. Wrapped<String>? extractedInnerHtml,
  7. Wrapped<String>? type,
  8. Wrapped<String>? url,
})

Implementation

GetKnowledgeBaseURLResponseModel copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<String>? name,
    Wrapped<KnowledgeBaseDocumentMetadataResponseModel>? metadata,
    Wrapped<bool>? promptInjectable,
    Wrapped<ResourceAccessInfo>? accessInfo,
    Wrapped<String>? extractedInnerHtml,
    Wrapped<String>? type,
    Wrapped<String>? url}) {
  return GetKnowledgeBaseURLResponseModel(
      id: (id != null ? id.value : this.id),
      name: (name != null ? name.value : this.name),
      metadata: (metadata != null ? metadata.value : this.metadata),
      promptInjectable: (promptInjectable != null
          ? promptInjectable.value
          : this.promptInjectable),
      accessInfo: (accessInfo != null ? accessInfo.value : this.accessInfo),
      extractedInnerHtml: (extractedInnerHtml != null
          ? extractedInnerHtml.value
          : this.extractedInnerHtml),
      type: (type != null ? type.value : this.type),
      url: (url != null ? url.value : this.url));
}