The built in toObject() method will ignore derived data when using Data Models.
This additional method will instead use the spread operator to return a simplified
version of the data.
Returns object
Plain object either via deepClone or the spread operator.
Convert the schema to a plain object.
The built in
toObject()method will ignore derived data when using Data Models. This additional method will instead use the spread operator to return a simplified version of the data.