ModelQuery constructor

ModelQuery({
  1. InferenceFramework? framework,
  2. ModelCategory? category,
  3. ModelFormat? format,
  4. bool? downloadedOnly,
  5. Int64? maxSizeBytes,
  6. String? searchQuery,
  7. ModelRegistryStatus? registryStatus,
})

Implementation

factory ModelQuery({
  InferenceFramework? framework,
  ModelCategory? category,
  ModelFormat? format,
  $core.bool? downloadedOnly,
  $fixnum.Int64? maxSizeBytes,
  $core.String? searchQuery,
  ModelRegistryStatus? registryStatus,
}) {
  final result = create();
  if (framework != null) result.framework = framework;
  if (category != null) result.category = category;
  if (format != null) result.format = format;
  if (downloadedOnly != null) result.downloadedOnly = downloadedOnly;
  if (maxSizeBytes != null) result.maxSizeBytes = maxSizeBytes;
  if (searchQuery != null) result.searchQuery = searchQuery;
  if (registryStatus != null) result.registryStatus = registryStatus;
  return result;
}