AttachmentRef class
AttachmentRef, generated from its schema.
Constructors
- AttachmentRef({required String id, String? filename, required String mediaType, int? sizeBytes, DigestMultibase? digest})
-
const
-
AttachmentRef.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- digest → DigestMultibase?
-
OPTIONAL. Multibase-encoded multihash over the attachment bytes, so the reference
is itself verifiable and tamper-evident. Taken over the bytes as transferred, not
over any JSON wrapper.
final
- filename → DigestMultibase?
-
OPTIONAL. Suggested filename.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Opaque attachment id, resolvable via the bridge's attachment fetch.
final
- mediaType → String
-
IANA media type (e.g.
image/jpeg).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeBytes → int?
-
OPTIONAL. Size in bytes, if known ahead of fetch.
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