copyWith method

CustomerRequestDTO copyWith({
  1. List<String>? expands,
  2. CustomerRequestLinkDTO? links,
  3. CustomerRequestActionsDTO? actions,
  4. PagedDTOAttachmentDTO? attachments,
  5. PagedDTOCommentDTO? comments,
  6. DateDTO? createdDate,
  7. CustomerRequestStatusDTO? currentStatus,
  8. String? issueId,
  9. String? issueKey,
  10. PagedDTOUserDTO? participants,
  11. UserDTO? reporter,
  12. List<CustomerRequestFieldValueDTO>? requestFieldValues,
  13. RequestTypeDTO? requestType,
  14. String? requestTypeId,
  15. ServiceDeskDTO? serviceDesk,
  16. String? serviceDeskId,
  17. PagedDTOSlaInformationDTO? sla,
  18. 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,
  );
}