ImportRequest class final

Import request

Annotations
  • @immutable

Constructors

ImportRequest({String? uploadId, String? url, String? assetId, required ImportFormat format, ImportTarget? target, Map<String, Object?>? options, Map<String, Object?> extra = const {}})
Creates a ImportRequest.
const
ImportRequest.fromJson(Map<String, Object?> json, [String path = ''])
Decodes json; throws FormatException (with the JSON path) on a missing required member or a type mismatch. Unknown members and explicit nulls go to extra.
factory

Properties

assetId → String?
an already stored asset (e.g. a .zelim uploaded as asset)
final
extra → Map<String, Object?>
Members this version does not model (incl. x-* extensions and explicit nulls); written back by toJson.
final
format → ImportFormat
format member.
final
hashCode → int
The hash code for this object.
no setteroverride
options → Map<String, Object?>?
format-specific (e.g. domemaster-folder: fps, loop)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
target → ImportTarget?
target member.
final
uploadId → String?
tus upload (purpose import)
final
url → String?
server-side fetch (allow-listed hosts only)
final

Methods

copyWith({String? uploadId, String? url, String? assetId, ImportFormat? format, ImportTarget? target, Map<String, Object?>? options, Map<String, Object?>? extra}) → ImportRequest
A copy with the given members replaced (a member cannot be reset to null this way).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Encodes to JSON (absent members omitted, extra merged back).
toString() → String
A string representation of this object.
override

Operators

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

Constants

schemaId → const String
$id of the schema this model describes.