controller.utilities.configuration.ProjectModel.model_copy

ProjectModel.model_copy(*, update=None, deep=False)

Usage docs: https://docs.pydantic.dev/2.7/concepts/serialization/#model_copy

Returns a copy of the model.

Parameters:
  • update (dict[str, Any] | None, default: None) – Values to change/add in the new model. Note: the data is not validated before creating the new model. You should trust this data.

  • deep (bool, default: False) – Set to True to make a deep copy of the model.

  • self (TypeVar(Model, bound= BaseModel))

Return type:

TypeVar(Model, bound= BaseModel)

Returns:

New model instance.