ModelRegistryRefreshResult constructor

ModelRegistryRefreshResult({
  1. bool? success,
  2. ModelInfoList? models,
  3. int? registeredCount,
  4. int? updatedCount,
  5. int? discoveredCount,
  6. int? prunedCount,
  7. Int64? refreshedAtUnixMs,
  8. Iterable<String>? warnings,
  9. String? errorMessage,
  10. int? downloadedCount,
  11. int? availableCount,
  12. int? errorCount,
})

Implementation

factory ModelRegistryRefreshResult({
  $core.bool? success,
  ModelInfoList? models,
  $core.int? registeredCount,
  $core.int? updatedCount,
  $core.int? discoveredCount,
  $core.int? prunedCount,
  $fixnum.Int64? refreshedAtUnixMs,
  $core.Iterable<$core.String>? warnings,
  $core.String? errorMessage,
  $core.int? downloadedCount,
  $core.int? availableCount,
  $core.int? errorCount,
}) {
  final result = create();
  if (success != null) result.success = success;
  if (models != null) result.models = models;
  if (registeredCount != null) result.registeredCount = registeredCount;
  if (updatedCount != null) result.updatedCount = updatedCount;
  if (discoveredCount != null) result.discoveredCount = discoveredCount;
  if (prunedCount != null) result.prunedCount = prunedCount;
  if (refreshedAtUnixMs != null) result.refreshedAtUnixMs = refreshedAtUnixMs;
  if (warnings != null) result.warnings.addAll(warnings);
  if (errorMessage != null) result.errorMessage = errorMessage;
  if (downloadedCount != null) result.downloadedCount = downloadedCount;
  if (availableCount != null) result.availableCount = availableCount;
  if (errorCount != null) result.errorCount = errorCount;
  return result;
}