ModelInfo constructor
ModelInfo({
- String? id,
- String? name,
- ModelCategory? category,
- ModelFormat? format,
- InferenceFramework? framework,
- String? downloadUrl,
- String? localPath,
- Int64? downloadSizeBytes,
- int? contextLength,
- bool? supportsThinking,
- bool? supportsLora,
- ModelSource? source,
- Int64? createdAtUnixMs,
- Int64? updatedAtUnixMs,
- Int64? memoryRequiredBytes,
- String? checksumSha256,
- ThinkingTagPattern? thinkingPattern,
- ModelInfoMetadata? metadata,
- SingleFileArtifact? singleFile,
- ArchiveArtifact? archive,
- MultiFileArtifact? multiFile,
- String? customStrategyId,
- bool? builtIn,
- ModelArtifactType? artifactType,
- ExpectedModelFiles? expectedFiles,
- AccelerationPreference? accelerationPreference,
- RoutingPolicy? routingPolicy,
- ModelRuntimeCompatibility? compatibility,
- InferenceFramework? preferredFramework,
- ModelRegistryStatus? registryStatus,
- bool? isDownloaded,
- bool? isAvailable,
- Int64? lastUsedAtUnixMs,
- int? usageCount,
- bool? syncPending,
- String? statusMessage,
Implementation
factory ModelInfo({
$core.String? id,
$core.String? name,
ModelCategory? category,
ModelFormat? format,
InferenceFramework? framework,
$core.String? downloadUrl,
$core.String? localPath,
$fixnum.Int64? downloadSizeBytes,
$core.int? contextLength,
$core.bool? supportsThinking,
$core.bool? supportsLora,
ModelSource? source,
$fixnum.Int64? createdAtUnixMs,
$fixnum.Int64? updatedAtUnixMs,
$fixnum.Int64? memoryRequiredBytes,
$core.String? checksumSha256,
$0.ThinkingTagPattern? thinkingPattern,
ModelInfoMetadata? metadata,
SingleFileArtifact? singleFile,
ArchiveArtifact? archive,
MultiFileArtifact? multiFile,
$core.String? customStrategyId,
$core.bool? builtIn,
ModelArtifactType? artifactType,
ExpectedModelFiles? expectedFiles,
$1.AccelerationPreference? accelerationPreference,
RoutingPolicy? routingPolicy,
ModelRuntimeCompatibility? compatibility,
InferenceFramework? preferredFramework,
ModelRegistryStatus? registryStatus,
$core.bool? isDownloaded,
$core.bool? isAvailable,
$fixnum.Int64? lastUsedAtUnixMs,
$core.int? usageCount,
$core.bool? syncPending,
$core.String? statusMessage,
}) {
final result = create();
if (id != null) result.id = id;
if (name != null) result.name = name;
if (category != null) result.category = category;
if (format != null) result.format = format;
if (framework != null) result.framework = framework;
if (downloadUrl != null) result.downloadUrl = downloadUrl;
if (localPath != null) result.localPath = localPath;
if (downloadSizeBytes != null) result.downloadSizeBytes = downloadSizeBytes;
if (contextLength != null) result.contextLength = contextLength;
if (supportsThinking != null) result.supportsThinking = supportsThinking;
if (supportsLora != null) result.supportsLora = supportsLora;
if (source != null) result.source = source;
if (createdAtUnixMs != null) result.createdAtUnixMs = createdAtUnixMs;
if (updatedAtUnixMs != null) result.updatedAtUnixMs = updatedAtUnixMs;
if (memoryRequiredBytes != null)
result.memoryRequiredBytes = memoryRequiredBytes;
if (checksumSha256 != null) result.checksumSha256 = checksumSha256;
if (thinkingPattern != null) result.thinkingPattern = thinkingPattern;
if (metadata != null) result.metadata = metadata;
if (singleFile != null) result.singleFile = singleFile;
if (archive != null) result.archive = archive;
if (multiFile != null) result.multiFile = multiFile;
if (customStrategyId != null) result.customStrategyId = customStrategyId;
if (builtIn != null) result.builtIn = builtIn;
if (artifactType != null) result.artifactType = artifactType;
if (expectedFiles != null) result.expectedFiles = expectedFiles;
if (accelerationPreference != null)
result.accelerationPreference = accelerationPreference;
if (routingPolicy != null) result.routingPolicy = routingPolicy;
if (compatibility != null) result.compatibility = compatibility;
if (preferredFramework != null)
result.preferredFramework = preferredFramework;
if (registryStatus != null) result.registryStatus = registryStatus;
if (isDownloaded != null) result.isDownloaded = isDownloaded;
if (isAvailable != null) result.isAvailable = isAvailable;
if (lastUsedAtUnixMs != null) result.lastUsedAtUnixMs = lastUsedAtUnixMs;
if (usageCount != null) result.usageCount = usageCount;
if (syncPending != null) result.syncPending = syncPending;
if (statusMessage != null) result.statusMessage = statusMessage;
return result;
}