The toObject method returns a cloned model instance (record) but stripped of all instance methods.
Description | Possible Data Types | |
---|---|---|
Cloned Record | { } |
See usage in .toJSON()
You will only want to use .toObject when overriding the default .toJSON instance method.