ComponentLifecycleSnapshot constructor

ComponentLifecycleSnapshot({
  1. SDKComponent? component,
  2. ComponentLifecycleState? state,
  3. String? modelId,
  4. Int64? updatedAtMs,
  5. String? errorMessage,
  6. ModelCategory? category,
  7. InferenceFramework? framework,
  8. String? resolvedPath,
  9. Int64? loadedAtUnixMs,
  10. ModelInfo? model,
})

Implementation

factory ComponentLifecycleSnapshot({
  SDKComponent? component,
  $6.ComponentLifecycleState? state,
  $core.String? modelId,
  $fixnum.Int64? updatedAtMs,
  $core.String? errorMessage,
  $0.ModelCategory? category,
  $0.InferenceFramework? framework,
  $core.String? resolvedPath,
  $fixnum.Int64? loadedAtUnixMs,
  $0.ModelInfo? model,
}) {
  final result = create();
  if (component != null) result.component = component;
  if (state != null) result.state = state;
  if (modelId != null) result.modelId = modelId;
  if (updatedAtMs != null) result.updatedAtMs = updatedAtMs;
  if (errorMessage != null) result.errorMessage = errorMessage;
  if (category != null) result.category = category;
  if (framework != null) result.framework = framework;
  if (resolvedPath != null) result.resolvedPath = resolvedPath;
  if (loadedAtUnixMs != null) result.loadedAtUnixMs = loadedAtUnixMs;
  if (model != null) result.model = model;
  return result;
}