copyWith method
BatchCallDetailedResponse
copyWith({
- String? id,
- String? phoneNumberId,
- TelephonyProvider? phoneProvider,
- String? name,
- String? agentId,
- int? createdAtUnix,
- int? scheduledTimeUnix,
- int? totalCallsDispatched,
- int? totalCallsScheduled,
- int? lastUpdatedAtUnix,
- BatchCallStatus? status,
- String? agentName,
- List<
OutboundCallRecipientResponseModel> ? recipients,
Implementation
BatchCallDetailedResponse copyWith(
{String? id,
String? phoneNumberId,
enums.TelephonyProvider? phoneProvider,
String? name,
String? agentId,
int? createdAtUnix,
int? scheduledTimeUnix,
int? totalCallsDispatched,
int? totalCallsScheduled,
int? lastUpdatedAtUnix,
enums.BatchCallStatus? status,
String? agentName,
List<OutboundCallRecipientResponseModel>? recipients}) {
return BatchCallDetailedResponse(
id: id ?? this.id,
phoneNumberId: phoneNumberId ?? this.phoneNumberId,
phoneProvider: phoneProvider ?? this.phoneProvider,
name: name ?? this.name,
agentId: agentId ?? this.agentId,
createdAtUnix: createdAtUnix ?? this.createdAtUnix,
scheduledTimeUnix: scheduledTimeUnix ?? this.scheduledTimeUnix,
totalCallsDispatched: totalCallsDispatched ?? this.totalCallsDispatched,
totalCallsScheduled: totalCallsScheduled ?? this.totalCallsScheduled,
lastUpdatedAtUnix: lastUpdatedAtUnix ?? this.lastUpdatedAtUnix,
status: status ?? this.status,
agentName: agentName ?? this.agentName,
recipients: recipients ?? this.recipients);
}