FileLink class final
A time-bounded link that grants configured access to a stored file.
status, active, and expiresAt describe whether the link can currently be used; delivery describes how the file is presented to its recipient.
Constructors
- FileLink({required String id, required Kind kind, required String fileId, required String purpose, required Status status, required bool active, required Delivery delivery, required Access access, required Actor createdBy, Actor? revokedBy, CustomData? customData, FileMetadata? metadata, required DateTime createdAt, required DateTime updatedAt, required DateTime expiresAt, DateTime? revokedAt})
-
const
-
FileLink.fromJson(Map<
String, Object?> json) -
factory
Properties
- access → Access
-
final
- active → bool
-
final
- createdAt → DateTime
-
final
- createdBy → Actor
-
final
- customData → CustomData?
-
final
- delivery → Delivery
-
final
- expiresAt → DateTime
-
final
- fileId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- kind → Kind
-
final
- metadata → FileMetadata?
-
final
- purpose → String
-
final
- revokedAt → DateTime?
-
final
- revokedBy → Actor?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → Status
-
final
- updatedAt → DateTime
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited