Attachment

interface Attachment : Mappable

File attachment metadata and links.

Properties

Link copied to clipboard
abstract val download: String

Direct download URL if different from url

Link copied to clipboard
abstract val fileName: String?

Optional display name of the file

Link copied to clipboard
abstract val filePath: String?

Optional source path (if locally referenced)

Link copied to clipboard
abstract val id: String

Stable identifier of the attachment

Link copied to clipboard
abstract val url: String

Public or signed URL to access the file

Functions

Link copied to clipboard
abstract fun copy(id: String = this.id, url: String = this.url, fileName: String? = this.fileName): Attachment
Link copied to clipboard
abstract fun toJsonObject(): JsonObject

Serializes this instance to a structured JsonObject.

Link copied to clipboard
abstract fun toJsonString(): String

Serializes this instance to a compact JSON string.

Link copied to clipboard
abstract fun toMap(): MutableMap<String, Any?>

Converts this instance into a mutable key-value map suitable for mutation and re-serialization.