DittoAttachment Represents an attachment and can be used to insert the associated attachment into a document at a specific key. metadata The attachment’s metadata. ==(_:_:) hash(into:) getData() Returns the attachment’s data representation. Throws DittoSwiftError. copy(toPath:) Copies the attachment to the specified file path. Throws DittoSwiftError.