copyWithWrapped method

OutboundCallRecipientResponseModel copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? phoneNumber,
  3. Wrapped<BatchCallRecipientStatus>? status,
  4. Wrapped<int>? createdAtUnix,
  5. Wrapped<int>? updatedAtUnix,
  6. Wrapped? conversationId,
  7. Wrapped? conversationInitiationClientData,
})

Implementation

OutboundCallRecipientResponseModel copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<String>? phoneNumber,
    Wrapped<enums.BatchCallRecipientStatus>? status,
    Wrapped<int>? createdAtUnix,
    Wrapped<int>? updatedAtUnix,
    Wrapped<dynamic>? conversationId,
    Wrapped<dynamic>? conversationInitiationClientData}) {
  return OutboundCallRecipientResponseModel(
      id: (id != null ? id.value : this.id),
      phoneNumber:
          (phoneNumber != null ? phoneNumber.value : this.phoneNumber),
      status: (status != null ? status.value : this.status),
      createdAtUnix:
          (createdAtUnix != null ? createdAtUnix.value : this.createdAtUnix),
      updatedAtUnix:
          (updatedAtUnix != null ? updatedAtUnix.value : this.updatedAtUnix),
      conversationId: (conversationId != null
          ? conversationId.value
          : this.conversationId),
      conversationInitiationClientData:
          (conversationInitiationClientData != null
              ? conversationInitiationClientData.value
              : this.conversationInitiationClientData));
}