MCPcopy
hub / github.com/sequelize/sequelize / toJSON

Method toJSON

src/model.js:4591–4597  ·  view source on GitHub ↗

* 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}

()

Source from the content-addressed store, hash-verified

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.

Callers 1

sscce.jsFile · 0.45

Calls 1

getMethod · 0.95

Tested by

no test coverage detected