Bucket class
Represents a storage bucket in the Calljmp system.
A bucket is a container for organizing files in the storage system. Each bucket has a unique identifier and can contain multiple files with various metadata and access controls.
Example
final bucket = Bucket(
id: 123,
name: 'media',
description: 'User uploaded files',
createdAt: DateTime.now(),
);
Constructors
Properties
- createdAt → DateTime
-
The timestamp when this bucket was created.
final
- description → String?
-
Optional description of the bucket's purpose.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The unique numeric identifier for this bucket.
final
- name → String
-
The name of the bucket.
final
- 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
-
toJson(
) → Map< String, dynamic> - Converts this Bucket instance to a JSON object.
-
toString(
) → String -
Returns a string representation of this Bucket instance.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited