* @function ThemeLabelText.fromObj * @description 从传入对象获取标签中文本风格类。 * @param {Object} obj - 传入对象。 * @returns {ThemeLabelText} ThemeLabelText 对象。
(obj)
| 99 | * @returns {ThemeLabelText} ThemeLabelText 对象。 |
| 100 | */ |
| 101 | static fromObj(obj) { |
| 102 | if (!obj) { |
| 103 | return; |
| 104 | } |
| 105 | var res = new ThemeLabelText(); |
| 106 | Util.copy(res, obj); |
| 107 | res.uniformStyle = ServerTextStyle.fromObj(obj.uniformStyle); |
| 108 | res.uniformMixedStyle = LabelMixedTextStyle.fromObj(obj.uniformMixedStyle); |
| 109 | return res; |
| 110 | } |
| 111 | } |
| 112 |