copyWithWrapped method

ConversationConfig copyWithWrapped({
  1. Wrapped<bool?>? textOnly,
  2. Wrapped<int?>? maxDurationSeconds,
  3. Wrapped<List<ClientEvent>?>? clientEvents,
})

Implementation

ConversationConfig copyWithWrapped(
    {Wrapped<bool?>? textOnly,
    Wrapped<int?>? maxDurationSeconds,
    Wrapped<List<enums.ClientEvent>?>? clientEvents}) {
  return ConversationConfig(
      textOnly: (textOnly != null ? textOnly.value : this.textOnly),
      maxDurationSeconds: (maxDurationSeconds != null
          ? maxDurationSeconds.value
          : this.maxDurationSeconds),
      clientEvents:
          (clientEvents != null ? clientEvents.value : this.clientEvents));
}