copyWithWrapped method

ConversationHistoryMetadataCommonModel copyWithWrapped({
  1. Wrapped<int>? startTimeUnixSecs,
  2. Wrapped? acceptedTimeUnixSecs,
  3. Wrapped<int>? callDurationSecs,
  4. Wrapped? cost,
  5. Wrapped<ConversationDeletionSettings?>? deletionSettings,
  6. Wrapped<ConversationHistoryFeedbackCommonModel?>? feedback,
  7. Wrapped<AuthorizationMethod?>? authorizationMethod,
  8. Wrapped<ConversationChargingCommonModel?>? charging,
  9. Wrapped? phoneCall,
  10. Wrapped? batchCall,
  11. Wrapped<String?>? terminationReason,
  12. Wrapped? error,
  13. Wrapped? mainLanguage,
  14. Wrapped? ragUsage,
  15. 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));
}