You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
478 B
JavaScript
14 lines
478 B
JavaScript
export default class WanderhomeDataModel extends foundry.abstract.TypeDataModel {
|
|
/**
|
|
* 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.
|
|
*
|
|
* @returns {object} Plain object either via deepClone or the spread operator.
|
|
*/
|
|
toPlainObject() {
|
|
return {...this};
|
|
}
|
|
} |