package pl.polskalokalnie.report;

public record ListingReportAttachmentResponse(
        String fileName,
        String fileType,
        String dataUrl
) {
    public static ListingReportAttachmentResponse from(ListingReportAttachment attachment) {
        return new ListingReportAttachmentResponse(
                attachment.getFileName(),
                attachment.getFileType(),
                attachment.getDataUrl()
        );
    }
}
