* @function ThemeGraphItem.fromObj * @description 从传入对象获取统计专题图子项类。 * @param {Object} obj - 传入对象。 * @returns {ThemeGraphItem} ThemeGraphItem 对象。
(obj)
| 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 |