UNPKG

@cloudbase/lowcode-deployer

Version:

deploy weda app

30 lines (29 loc) 549 B
"use strict"; /** * @inner */ class AbstractModel { constructor() { } /** * @inner */ deserialize(params) { } /** * Serialize object into a JSON string. * @return {string} */ to_json_string() { return JSON.stringify(this); } /** * Deserialize from a JSON string to an object. * @param {string} dataString */ from_json_string(dataString) { let params = JSON.parse(dataString); this.deserialize(params); } } module.exports = AbstractModel;