RenderJobView class final

A render job as seen by a client: status, progress, and download links.

The same shape the server serializes and the client parses, so the two never drift.

Annotations
  • @immutable

Constructors

RenderJobView({required String id, required String status, int? completed, int? total, String? error, FileLink? video, FileLink? poster, String? code, Map<String, Object?>? spec, DateTime? createdAt, DateTime? expiresAt})
Creates a job view.
const
RenderJobView.fromJson(Map<String, Object?> json)
Parses a job view from json.
factory

Properties

code → String?
The printed Dart Video build() snippet for an AI (prompt/edit) render, or null for code/spec/key renders and before the spec has been authored.
final
completed → int?
Frames captured so far, while running.
final
createdAt → DateTime?
When the job was created.
final
error → String?
The failure message when status is failed.
final
expiresAt → DateTime?
When the job's files expire.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The job id.
final
isFailed → bool
Whether the render failed.
no setter
isPending → bool
Whether the render is still queued or running.
no setter
isSucceeded → bool
Whether the render finished successfully.
no setter
poster → FileLink?
The poster link, present once succeeded (when a poster was requested).
final
progress → double
Completion as a 0..1 fraction (0 until a total is known).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spec → Map<String, Object?>?
The decoded authored VideoSpec for an AI (prompt/edit) render, or null for code/spec/key renders and before the spec has been authored.
final
status → String
One of queued, running, succeeded, failed.
final
total → int?
Total frames, while running.
final
video → FileLink?
The video link, present once succeeded.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The job view as a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited