toAttachmentGalleryResultItem

Extension to convert instance of Attachment to AttachmentGalleryResultItem type.