Optional
fromOptional transformation that will be run when converting from a snapshot to the data part of the model. Useful for example to do versioning and keep the data part up to date with the latest version of the model.
The custom input snapshot.
An input snapshot that must match the expected model input snapshot.
Optional
toOptional transformation that will be run when converting the data part of the model into a snapshot.
The output snapshot.
The model instance.
a custom output snapshot.
Optional
valueA value type will be cloned automatically when being attached to a new tree.
The default is false
.
Model options.