src/models/contextAttribute.js
import Base from './base.js'
export default class ContextAttribute extends Base {
constructor({ _id, key, value, type }) {
super()
this.id = _id
this.key = key
this.value = value
this.type = type
}
toJSON() {
return {
'_id': this.id,
'key': this.key,
'value': this.value,
'type': this.type
}
}
}