copyWithWrapped method
BatchCallDetailedResponse
copyWithWrapped({
- Wrapped<
String> ? id, - Wrapped<
String> ? phoneNumberId, - Wrapped<
TelephonyProvider?> ? phoneProvider, - Wrapped<
String> ? name, - Wrapped<
String> ? agentId, - Wrapped<
int> ? createdAtUnix, - Wrapped<
int> ? scheduledTimeUnix, - Wrapped<
int> ? totalCallsDispatched, - Wrapped<
int> ? totalCallsScheduled, - Wrapped<
int> ? lastUpdatedAtUnix, - Wrapped<
BatchCallStatus> ? status, - Wrapped<
String> ? agentName, - Wrapped<
List< ? recipients,OutboundCallRecipientResponseModel> >
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));
}