ModelArtifactType class sealed

Describes how a model is packaged and what processing is needed after download

Implementers
Available extensions

Constructors

ModelArtifactType.fromJson(Map<String, dynamic> json)
factory

Properties

displayName String
no setter
expectedFiles ExpectedModelFiles
no setter
hashCode int
The hash code for this object.
no setterinherited
requiresDownload bool
no setter
requiresExtraction bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toC() int

Available on ModelArtifactType, provided by the ModelArtifactTypeCppBridge extension

Convert to C++ artifact kind type
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

infer(Uri? url, ModelFormat format) ModelArtifactType
Infer artifact type from download URL
singleFile({ExpectedModelFiles expectedFiles = ExpectedModelFiles.none}) SingleFileArtifact
Create a single file artifact
tarBz2Archive({ArchiveStructure structure = ArchiveStructure.unknown, ExpectedModelFiles expectedFiles = ExpectedModelFiles.none}) ArchiveArtifact
Create a tar.bz2 archive artifact
tarGzArchive({ArchiveStructure structure = ArchiveStructure.unknown, ExpectedModelFiles expectedFiles = ExpectedModelFiles.none}) ArchiveArtifact
Create a tar.gz archive artifact
zipArchive({ArchiveStructure structure = ArchiveStructure.unknown, ExpectedModelFiles expectedFiles = ExpectedModelFiles.none}) ArchiveArtifact
Create a zip archive artifact

Constants

builtIn → const BuiltInArtifact
Create a built-in artifact (no download needed)