* 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 * Model#get * * @returns {object}
()
| 4589 | * @returns {object} |
| 4590 | */ |
| 4591 | toJSON() { |
| 4592 | return _.cloneDeep( |
| 4593 | this.get({ |
| 4594 | plain: true |
| 4595 | }) |
| 4596 | ); |
| 4597 | } |
| 4598 | |
| 4599 | /** |
| 4600 | * Creates a 1:m association between this (the source) and the provided target. |