Interface for serializable data or file content that supports multiple transport formats.
This interface defines standardized formats for transporting resources (files/data) across different systems, supporting both direct encoding and remote URL references.
Supported transport formats:
0. Pure Base64 string: "{BASE64_ENCODE}"
- Data URI format:
"data:image/png;base64,{BASE64_ENCODE}" - Remote URL:
"https://..."(download from remote server/CDN) - Structured JSON object (supports encryption and metadata):
{
"data" : "...", // Base64-encoded file content
"filename" : "avatar.png",
"URL" : "http://...", // CDN download URL (alternative to inline data)
"key" : { // Symmetric encryption key (for encrypted content)
"algorithm" : "AES", // Encryption algorithm (e.g., "AES", "DES")
"data" : "{BASE64_ENCODE}"
}
}
Format classification:
- TED (TransportableData): Formats 0 and 1 (encoded data only)
- PNF (TransportableFile): Formats 2 and 3 (file with metadata/URL)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Object - Serializes the resource into a transportable format.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited