copyWith method

ServiceDeskDTO copyWith({
  1. SelfLinkDTO? links,
  2. String? id,
  3. String? projectId,
  4. String? projectKey,
  5. String? projectName,
})

Implementation

ServiceDeskDTO copyWith(
    {SelfLinkDTO? links,
    String? id,
    String? projectId,
    String? projectKey,
    String? projectName}) {
  return ServiceDeskDTO(
    links: links ?? this.links,
    id: id ?? this.id,
    projectId: projectId ?? this.projectId,
    projectKey: projectKey ?? this.projectKey,
    projectName: projectName ?? this.projectName,
  );
}