copyWith method

AttachmentCreateResultDTO copyWith({
  1. PagedDTOAttachmentDTO? attachments,
  2. CommentDTO? comment,
})

Implementation

AttachmentCreateResultDTO copyWith(
    {PagedDTOAttachmentDTO? attachments, CommentDTO? comment}) {
  return AttachmentCreateResultDTO(
    attachments: attachments ?? this.attachments,
    comment: comment ?? this.comment,
  );
}