copyWith method
Implementation
AttachmentDTO copyWith(
{AttachmentLinkDTO? links,
UserDTO? author,
DateDTO? created,
String? filename,
String? mimeType,
int? size}) {
return AttachmentDTO(
links: links ?? this.links,
author: author ?? this.author,
created: created ?? this.created,
filename: filename ?? this.filename,
mimeType: mimeType ?? this.mimeType,
size: size ?? this.size,
);
}