copyWithWrapped method

ConversationHistorySIPTrunkingPhoneCallModel copyWithWrapped({
  1. Wrapped<ConversationHistorySIPTrunkingPhoneCallModelDirection>? direction,
  2. Wrapped<String>? phoneNumberId,
  3. Wrapped<String>? agentNumber,
  4. Wrapped<String>? externalNumber,
  5. Wrapped<String>? type,
  6. Wrapped<String>? callSid,
})

Implementation

ConversationHistorySIPTrunkingPhoneCallModel copyWithWrapped(
    {Wrapped<enums.ConversationHistorySIPTrunkingPhoneCallModelDirection>?
        direction,
    Wrapped<String>? phoneNumberId,
    Wrapped<String>? agentNumber,
    Wrapped<String>? externalNumber,
    Wrapped<String>? type,
    Wrapped<String>? callSid}) {
  return ConversationHistorySIPTrunkingPhoneCallModel(
      direction: (direction != null ? direction.value : this.direction),
      phoneNumberId:
          (phoneNumberId != null ? phoneNumberId.value : this.phoneNumberId),
      agentNumber:
          (agentNumber != null ? agentNumber.value : this.agentNumber),
      externalNumber: (externalNumber != null
          ? externalNumber.value
          : this.externalNumber),
      type: (type != null ? type.value : this.type),
      callSid: (callSid != null ? callSid.value : this.callSid));
}