copyWithWrapped method

BatchCallDetailedResponse copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? phoneNumberId,
  3. Wrapped<TelephonyProvider?>? phoneProvider,
  4. Wrapped<String>? name,
  5. Wrapped<String>? agentId,
  6. Wrapped<int>? createdAtUnix,
  7. Wrapped<int>? scheduledTimeUnix,
  8. Wrapped<int>? totalCallsDispatched,
  9. Wrapped<int>? totalCallsScheduled,
  10. Wrapped<int>? lastUpdatedAtUnix,
  11. Wrapped<BatchCallStatus>? status,
  12. Wrapped<String>? agentName,
  13. Wrapped<List<OutboundCallRecipientResponseModel>>? recipients,
})

Implementation

BatchCallDetailedResponse copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<String>? phoneNumberId,
    Wrapped<enums.TelephonyProvider?>? phoneProvider,
    Wrapped<String>? name,
    Wrapped<String>? agentId,
    Wrapped<int>? createdAtUnix,
    Wrapped<int>? scheduledTimeUnix,
    Wrapped<int>? totalCallsDispatched,
    Wrapped<int>? totalCallsScheduled,
    Wrapped<int>? lastUpdatedAtUnix,
    Wrapped<enums.BatchCallStatus>? status,
    Wrapped<String>? agentName,
    Wrapped<List<OutboundCallRecipientResponseModel>>? recipients}) {
  return BatchCallDetailedResponse(
      id: (id != null ? id.value : this.id),
      phoneNumberId:
          (phoneNumberId != null ? phoneNumberId.value : this.phoneNumberId),
      phoneProvider:
          (phoneProvider != null ? phoneProvider.value : this.phoneProvider),
      name: (name != null ? name.value : this.name),
      agentId: (agentId != null ? agentId.value : this.agentId),
      createdAtUnix:
          (createdAtUnix != null ? createdAtUnix.value : this.createdAtUnix),
      scheduledTimeUnix: (scheduledTimeUnix != null
          ? scheduledTimeUnix.value
          : this.scheduledTimeUnix),
      totalCallsDispatched: (totalCallsDispatched != null
          ? totalCallsDispatched.value
          : this.totalCallsDispatched),
      totalCallsScheduled: (totalCallsScheduled != null
          ? totalCallsScheduled.value
          : this.totalCallsScheduled),
      lastUpdatedAtUnix: (lastUpdatedAtUnix != null
          ? lastUpdatedAtUnix.value
          : this.lastUpdatedAtUnix),
      status: (status != null ? status.value : this.status),
      agentName: (agentName != null ? agentName.value : this.agentName),
      recipients: (recipients != null ? recipients.value : this.recipients));
}