File class final

A stored file and its processing, safety scan, storage, and delivery state.

Check status and scanStatus before assuming file contents are available.

Constructors

File({required String id, required String purpose, required Status status, required ScanStatus scanStatus, String? name, String? filename, required String contentType, required int size, required String checksumSha256, required Actor createdBy, required Source source, Media? media, required PublicStorage storage, DeliveryDetails? delivery, LatestError? latestError, CustomData? customData, FileMetadata? metadata, required DateTime createdAt, required DateTime updatedAt, DateTime? availableAt, DateTime? expiresAt})
const
File.fromJson(Map<String, Object?> json)
factory

Properties

availableAt → DateTime?
final
checksumSha256 → String
final
contentType → String
final
createdAt → DateTime
final
createdBy → Actor
final
customData → CustomData?
final
delivery → DeliveryDetails?
final
expiresAt → DateTime?
final
filename → String?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
latestError → LatestError?
final
media → Media?
final
metadata → FileMetadata?
final
name → String?
final
purpose → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scanStatus → ScanStatus
final
size → int
final
source → Source
final
status → Status
final
storage → PublicStorage
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