Can I convert this object to json(because I’m retrieving this object from mongoDB) such that when I retrieve it back the getter function also works :

let params = {
whCharges: 57,
addWhCharges: 34,
minCod: 35,
codIn: 1.2,
rvp: 1.5,
get finalCharges() {
return this.codIn * fact.price;
},
}