* @param {!Array<*>=} data * @param {boolean=} includesLabel
(data = [], includesLabel = true)
| 771 | * @param {boolean=} includesLabel |
| 772 | */ |
| 773 | constructor(data = [], includesLabel = true) { |
| 774 | const base = includesLabel ? 1 : 0; |
| 775 | |
| 776 | /** @private {?AnalyticsContext} */ |
| 777 | this.context_ = |
| 778 | data[base] == null || data[base] == undefined |
| 779 | ? null |
| 780 | : new AnalyticsContext(data[base], includesLabel); |
| 781 | |
| 782 | /** @private {?AnalyticsEvent} */ |
| 783 | this.event_ = data[1 + base] == null ? null : data[1 + base]; |
| 784 | |
| 785 | /** @private {?AnalyticsEventMeta} */ |
| 786 | this.meta_ = |
| 787 | data[2 + base] == null || data[2 + base] == undefined |
| 788 | ? null |
| 789 | : new AnalyticsEventMeta(data[2 + base], includesLabel); |
| 790 | |
| 791 | /** @private {?EventParams} */ |
| 792 | this.params_ = |
| 793 | data[3 + base] == null || data[3 + base] == undefined |
| 794 | ? null |
| 795 | : new EventParams(data[3 + base], includesLabel); |
| 796 | } |
| 797 | |
| 798 | /** |
| 799 | * @return {?AnalyticsContext} |
nothing calls this directly
no outgoing calls
no test coverage detected