copyWith method
CustomerRequestDTO
copyWith({
- List<
String> ? expands, - CustomerRequestLinkDTO? links,
- CustomerRequestActionsDTO? actions,
- PagedDTOAttachmentDTO? attachments,
- PagedDTOCommentDTO? comments,
- DateDTO? createdDate,
- CustomerRequestStatusDTO? currentStatus,
- String? issueId,
- String? issueKey,
- PagedDTOUserDTO? participants,
- UserDTO? reporter,
- List<
CustomerRequestFieldValueDTO> ? requestFieldValues, - RequestTypeDTO? requestType,
- String? requestTypeId,
- ServiceDeskDTO? serviceDesk,
- String? serviceDeskId,
- PagedDTOSlaInformationDTO? sla,
- PagedDTOCustomerRequestStatusDTO? status,
Implementation
CustomerRequestDTO copyWith(
{List<String>? expands,
CustomerRequestLinkDTO? links,
CustomerRequestActionsDTO? actions,
PagedDTOAttachmentDTO? attachments,
PagedDTOCommentDTO? comments,
DateDTO? createdDate,
CustomerRequestStatusDTO? currentStatus,
String? issueId,
String? issueKey,
PagedDTOUserDTO? participants,
UserDTO? reporter,
List<CustomerRequestFieldValueDTO>? requestFieldValues,
RequestTypeDTO? requestType,
String? requestTypeId,
ServiceDeskDTO? serviceDesk,
String? serviceDeskId,
PagedDTOSlaInformationDTO? sla,
PagedDTOCustomerRequestStatusDTO? status}) {
return CustomerRequestDTO(
expands: expands ?? this.expands,
links: links ?? this.links,
actions: actions ?? this.actions,
attachments: attachments ?? this.attachments,
comments: comments ?? this.comments,
createdDate: createdDate ?? this.createdDate,
currentStatus: currentStatus ?? this.currentStatus,
issueId: issueId ?? this.issueId,
issueKey: issueKey ?? this.issueKey,
participants: participants ?? this.participants,
reporter: reporter ?? this.reporter,
requestFieldValues: requestFieldValues ?? this.requestFieldValues,
requestType: requestType ?? this.requestType,
requestTypeId: requestTypeId ?? this.requestTypeId,
serviceDesk: serviceDesk ?? this.serviceDesk,
serviceDeskId: serviceDeskId ?? this.serviceDeskId,
sla: sla ?? this.sla,
status: status ?? this.status,
);
}