copyWith method

BatchCallDetailedResponse copyWith({
  1. String? id,
  2. String? phoneNumberId,
  3. TelephonyProvider? phoneProvider,
  4. String? name,
  5. String? agentId,
  6. int? createdAtUnix,
  7. int? scheduledTimeUnix,
  8. int? totalCallsDispatched,
  9. int? totalCallsScheduled,
  10. int? lastUpdatedAtUnix,
  11. BatchCallStatus? status,
  12. String? agentName,
  13. 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);
}