copyWith method
Returns a copy of this TruncationRetentionRatio with the given fields replaced.
Pass null for postInstructionsTokenLimit to clear the existing value.
Implementation
TruncationRetentionRatio copyWith({
double? retentionRatio,
Object? postInstructionsTokenLimit = unsetCopyWithValue,
}) => TruncationRetentionRatio(
retentionRatio: retentionRatio ?? this.retentionRatio,
postInstructionsTokenLimit:
identical(postInstructionsTokenLimit, unsetCopyWithValue)
? this.postInstructionsTokenLimit
: postInstructionsTokenLimit as int?,
);