Serialization test

This commit is contained in:
barsdeveloper
2023-04-05 21:25:37 +02:00
parent 2d7e4e3e96
commit 721db0702b
6 changed files with 185 additions and 11 deletions

View File

@@ -1,7 +1,19 @@
export default class SimpleObject {
import IEntity from "../../js/entity/IEntity.js"
constructor(a = 8, b = 9) {
this.a = a
this.b = b
export default class SimpleObject extends IEntity {
static attributes = {
a: {
type: Number,
},
b: {
type: Number,
},
}
constructor(values = {}) {
values.a ??= 8
values.b ??= 9
super(values)
}
}