Attempt class final

One file-upload attempt and its validation or review outcome.

Exposes attemptedAt, contentType, declaredSize, and error, among other contract fields.

Constructors

Attempt({required DateTime attemptedAt, String? contentType, int? declaredSize, LatestError? error, DateTime? failedAt, String? fileId, String? filename, required String id, required int ordinal, Review? review, required String status, DateTime? succeededAt, required String uploadRequestId})
const
Attempt.fromJson(Map<String, Object?> json)
factory

Properties

attemptedAt → DateTime
final
contentType → String?
final
declaredSize → int?
final
error → LatestError?
final
failedAt → DateTime?
final
fileId → String?
final
filename → String?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
ordinal → int
final
review → Review?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → String
final
succeededAt → DateTime?
final
uploadRequestId → 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