MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / fromObj

Method fromObj

src/common/iServer/ThemeGraphItem.js:76–84  ·  view source on GitHub ↗

* @function ThemeGraphItem.fromObj * @description 从传入对象获取统计专题图子项类。 * @param {Object} obj - 传入对象。 * @returns {ThemeGraphItem} ThemeGraphItem 对象。

(obj)

Source from the content-addressed store, hash-verified

74 * @returns {ThemeGraphItem} ThemeGraphItem 对象。
75 */
76 static fromObj(obj) {
77 if (!obj) {
78 return;
79 }
80 var res = new ThemeGraphItem();
81 Util.copy(res, obj);
82 res.uniformStyle = ServerStyle.fromJson(obj.uniformStyle);
83 return res;
84 }
85
86}
87

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45
fromJsonMethod · 0.45

Tested by

no test coverage detected