JobStatus constructor

  1. @JsonSerializable(includeIfNull: false)
const JobStatus({
  1. @Default(appBskyVideoDefsJobStatus) @JsonKey(name: r'$type') String $type,
  2. required String jobId,
  3. required String did,
  4. @UJobStatusStateConverter() required UJobStatusState state,
  5. @Default(0) int progress,
  6. @BlobConverter() Blob? blob,
  7. String? error,
  8. String? message,
  9. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory JobStatus({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.video.defs#jobStatus`
  @Default(appBskyVideoDefsJobStatus) @JsonKey(name: r'$type') String $type,
  required String jobId,
  required String did,

  /// The state of the video processing job. All values not listed as a
  /// known value indicate that the job is in process.
  @UJobStatusStateConverter() required UJobStatusState state,

  /// Progress within the current processing state.
  @Default(0) int progress,
  @BlobConverter() Blob? blob,
  String? error,
  String? message,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _JobStatus;