copyWithWrapped method
Implementation
SafetyEvaluation copyWithWrapped(
{Wrapped<bool?>? isUnsafe,
Wrapped<String?>? llmReason,
Wrapped<int?>? safetyPromptVersion,
Wrapped<List<enums.SafetyRule>?>? matchedRuleId}) {
return SafetyEvaluation(
isUnsafe: (isUnsafe != null ? isUnsafe.value : this.isUnsafe),
llmReason: (llmReason != null ? llmReason.value : this.llmReason),
safetyPromptVersion: (safetyPromptVersion != null
? safetyPromptVersion.value
: this.safetyPromptVersion),
matchedRuleId:
(matchedRuleId != null ? matchedRuleId.value : this.matchedRuleId));
}