copyWithWrapped method

PromptEvaluationCriteria copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? name,
  3. Wrapped<String?>? type,
  4. Wrapped<String>? conversationGoalPrompt,
  5. Wrapped<bool?>? useKnowledgeBase,
})

Implementation

PromptEvaluationCriteria copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<String>? name,
    Wrapped<String?>? type,
    Wrapped<String>? conversationGoalPrompt,
    Wrapped<bool?>? useKnowledgeBase}) {
  return PromptEvaluationCriteria(
      id: (id != null ? id.value : this.id),
      name: (name != null ? name.value : this.name),
      type: (type != null ? type.value : this.type),
      conversationGoalPrompt: (conversationGoalPrompt != null
          ? conversationGoalPrompt.value
          : this.conversationGoalPrompt),
      useKnowledgeBase: (useKnowledgeBase != null
          ? useKnowledgeBase.value
          : this.useKnowledgeBase));
}