AttachmentRef class

AttachmentRef

Constructors

AttachmentRef({required String id, required String name, required int sizeBytes, required String sha256, String? contentType})
const
AttachmentRef.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

contentType → String?
Optional MIME type hint for the consumer UI (e.g. "text/plain", "application/x-pem-file").
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Opaque maintainer-assigned id for this attachment; used to fetch the blob via a separate mechanism.
final
name → String
User-supplied filename (e.g. "recovery-codes.txt").
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sha256 → String
Hex-encoded SHA-256 of the encrypted blob bytes (post-encryption). Lets the consumer verify integrity after fetch.
final
sizeBytes → int
Size of the encrypted blob in bytes. Maintainers MAY enforce a maximum per attachment and per entry.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited