copyWithWrapped method
ConversationHistoryMetadataCommonModel
copyWithWrapped({
- Wrapped<
int> ? startTimeUnixSecs, - Wrapped? acceptedTimeUnixSecs,
- Wrapped<
int> ? callDurationSecs, - Wrapped? cost,
- Wrapped<
ConversationDeletionSettings?> ? deletionSettings, - Wrapped<
ConversationHistoryFeedbackCommonModel?> ? feedback, - Wrapped<
AuthorizationMethod?> ? authorizationMethod, - Wrapped<
ConversationChargingCommonModel?> ? charging, - Wrapped? phoneCall,
- Wrapped? batchCall,
- Wrapped<
String?> ? terminationReason, - Wrapped? error,
- Wrapped? mainLanguage,
- Wrapped? ragUsage,
- Wrapped<
bool?> ? textOnly,
Implementation
ConversationHistoryMetadataCommonModel copyWithWrapped(
{Wrapped<int>? startTimeUnixSecs,
Wrapped<dynamic>? acceptedTimeUnixSecs,
Wrapped<int>? callDurationSecs,
Wrapped<dynamic>? cost,
Wrapped<ConversationDeletionSettings?>? deletionSettings,
Wrapped<ConversationHistoryFeedbackCommonModel?>? feedback,
Wrapped<enums.AuthorizationMethod?>? authorizationMethod,
Wrapped<ConversationChargingCommonModel?>? charging,
Wrapped<dynamic>? phoneCall,
Wrapped<dynamic>? batchCall,
Wrapped<String?>? terminationReason,
Wrapped<dynamic>? error,
Wrapped<dynamic>? mainLanguage,
Wrapped<dynamic>? ragUsage,
Wrapped<bool?>? textOnly}) {
return ConversationHistoryMetadataCommonModel(
startTimeUnixSecs: (startTimeUnixSecs != null
? startTimeUnixSecs.value
: this.startTimeUnixSecs),
acceptedTimeUnixSecs: (acceptedTimeUnixSecs != null
? acceptedTimeUnixSecs.value
: this.acceptedTimeUnixSecs),
callDurationSecs: (callDurationSecs != null
? callDurationSecs.value
: this.callDurationSecs),
cost: (cost != null ? cost.value : this.cost),
deletionSettings: (deletionSettings != null
? deletionSettings.value
: this.deletionSettings),
feedback: (feedback != null ? feedback.value : this.feedback),
authorizationMethod: (authorizationMethod != null
? authorizationMethod.value
: this.authorizationMethod),
charging: (charging != null ? charging.value : this.charging),
phoneCall: (phoneCall != null ? phoneCall.value : this.phoneCall),
batchCall: (batchCall != null ? batchCall.value : this.batchCall),
terminationReason: (terminationReason != null
? terminationReason.value
: this.terminationReason),
error: (error != null ? error.value : this.error),
mainLanguage:
(mainLanguage != null ? mainLanguage.value : this.mainLanguage),
ragUsage: (ragUsage != null ? ragUsage.value : this.ragUsage),
textOnly: (textOnly != null ? textOnly.value : this.textOnly));
}