UploadRequest class final

A request for a recipient to upload a file under defined constraints.

The model includes the upload lifecycle, parties, requested resource, attempts, and review or failure context returned by the API.

Constructors

UploadRequest({required String id, required String purpose, required Status status, required bool active, String? fileId, String? uploadUrl, required Constraints constraints, required Display display, required Party subject, required Party recipient, required Resource resource, required Actor requester, required Attempts attempts, LatestError? latestError, Actor? canceledBy, CustomData? customData, FileMetadata? metadata, required DateTime createdAt, required DateTime updatedAt, required DateTime expiresAt, DateTime? uploadingAt, DateTime? fulfilledAt, DateTime? expiredAt, DateTime? canceledAt, Attempt? attempt})
const
UploadRequest.fromJson(Map<String, Object?> json)
factory

Properties

active → bool
final
attempt → Attempt?
final
attempts → Attempts
final
canceledAt → DateTime?
final
canceledBy → Actor?
final
constraints → Constraints
final
createdAt → DateTime
final
customData → CustomData?
final
display → Display
final
expiredAt → DateTime?
final
expiresAt → DateTime
final
fileId → String?
final
fulfilledAt → DateTime?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
latestError → LatestError?
final
metadata → FileMetadata?
final
purpose → String
final
recipient → Party
final
requester → Actor
final
resource → Resource
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → Status
final
subject → Party
final
updatedAt → DateTime
final
uploadingAt → DateTime?
final
uploadUrl → String?
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