* Convert the instance to a JSON representation. * Proxies to calling `get` with no keys. * This means get all values gotten from the DB, and apply all custom getters. * * @see * {@link Model#get} * * @returns {object}
()
| 4429 | * @returns {object} |
| 4430 | */ |
| 4431 | toJSON() { |
| 4432 | return _.cloneDeep( |
| 4433 | this.get({ |
| 4434 | plain: true |
| 4435 | }) |
| 4436 | ); |
| 4437 | } |
| 4438 | |
| 4439 | /** |
| 4440 | * Creates a 1:m association between this (the source) and the provided target. |