| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.analyticsreporting.v4; | 3 library googleapis.analyticsreporting.v4; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 dateRange = new DateRange.fromJson(_json["dateRange"]); | 124 dateRange = new DateRange.fromJson(_json["dateRange"]); |
| 125 } | 125 } |
| 126 if (_json.containsKey("name")) { | 126 if (_json.containsKey("name")) { |
| 127 name = _json["name"]; | 127 name = _json["name"]; |
| 128 } | 128 } |
| 129 if (_json.containsKey("type")) { | 129 if (_json.containsKey("type")) { |
| 130 type = _json["type"]; | 130 type = _json["type"]; |
| 131 } | 131 } |
| 132 } | 132 } |
| 133 | 133 |
| 134 core.Map toJson() { | 134 core.Map<core.String, core.Object> toJson() { |
| 135 var _json = new core.Map(); | 135 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 136 if (dateRange != null) { | 136 if (dateRange != null) { |
| 137 _json["dateRange"] = (dateRange).toJson(); | 137 _json["dateRange"] = (dateRange).toJson(); |
| 138 } | 138 } |
| 139 if (name != null) { | 139 if (name != null) { |
| 140 _json["name"] = name; | 140 _json["name"] = name; |
| 141 } | 141 } |
| 142 if (type != null) { | 142 if (type != null) { |
| 143 _json["type"] = type; | 143 _json["type"] = type; |
| 144 } | 144 } |
| 145 return _json; | 145 return _json; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 203 |
| 204 CohortGroup.fromJson(core.Map _json) { | 204 CohortGroup.fromJson(core.Map _json) { |
| 205 if (_json.containsKey("cohorts")) { | 205 if (_json.containsKey("cohorts")) { |
| 206 cohorts = _json["cohorts"].map((value) => new Cohort.fromJson(value)).toLi
st(); | 206 cohorts = _json["cohorts"].map((value) => new Cohort.fromJson(value)).toLi
st(); |
| 207 } | 207 } |
| 208 if (_json.containsKey("lifetimeValue")) { | 208 if (_json.containsKey("lifetimeValue")) { |
| 209 lifetimeValue = _json["lifetimeValue"]; | 209 lifetimeValue = _json["lifetimeValue"]; |
| 210 } | 210 } |
| 211 } | 211 } |
| 212 | 212 |
| 213 core.Map toJson() { | 213 core.Map<core.String, core.Object> toJson() { |
| 214 var _json = new core.Map(); | 214 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 215 if (cohorts != null) { | 215 if (cohorts != null) { |
| 216 _json["cohorts"] = cohorts.map((value) => (value).toJson()).toList(); | 216 _json["cohorts"] = cohorts.map((value) => (value).toJson()).toList(); |
| 217 } | 217 } |
| 218 if (lifetimeValue != null) { | 218 if (lifetimeValue != null) { |
| 219 _json["lifetimeValue"] = lifetimeValue; | 219 _json["lifetimeValue"] = lifetimeValue; |
| 220 } | 220 } |
| 221 return _json; | 221 return _json; |
| 222 } | 222 } |
| 223 } | 223 } |
| 224 | 224 |
| 225 /** Column headers. */ | 225 /** Column headers. */ |
| 226 class ColumnHeader { | 226 class ColumnHeader { |
| 227 /** The dimension names in the response. */ | 227 /** The dimension names in the response. */ |
| 228 core.List<core.String> dimensions; | 228 core.List<core.String> dimensions; |
| 229 /** Metric headers for the metrics in the response. */ | 229 /** Metric headers for the metrics in the response. */ |
| 230 MetricHeader metricHeader; | 230 MetricHeader metricHeader; |
| 231 | 231 |
| 232 ColumnHeader(); | 232 ColumnHeader(); |
| 233 | 233 |
| 234 ColumnHeader.fromJson(core.Map _json) { | 234 ColumnHeader.fromJson(core.Map _json) { |
| 235 if (_json.containsKey("dimensions")) { | 235 if (_json.containsKey("dimensions")) { |
| 236 dimensions = _json["dimensions"]; | 236 dimensions = _json["dimensions"]; |
| 237 } | 237 } |
| 238 if (_json.containsKey("metricHeader")) { | 238 if (_json.containsKey("metricHeader")) { |
| 239 metricHeader = new MetricHeader.fromJson(_json["metricHeader"]); | 239 metricHeader = new MetricHeader.fromJson(_json["metricHeader"]); |
| 240 } | 240 } |
| 241 } | 241 } |
| 242 | 242 |
| 243 core.Map toJson() { | 243 core.Map<core.String, core.Object> toJson() { |
| 244 var _json = new core.Map(); | 244 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 245 if (dimensions != null) { | 245 if (dimensions != null) { |
| 246 _json["dimensions"] = dimensions; | 246 _json["dimensions"] = dimensions; |
| 247 } | 247 } |
| 248 if (metricHeader != null) { | 248 if (metricHeader != null) { |
| 249 _json["metricHeader"] = (metricHeader).toJson(); | 249 _json["metricHeader"] = (metricHeader).toJson(); |
| 250 } | 250 } |
| 251 return _json; | 251 return _json; |
| 252 } | 252 } |
| 253 } | 253 } |
| 254 | 254 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 267 | 267 |
| 268 DateRange.fromJson(core.Map _json) { | 268 DateRange.fromJson(core.Map _json) { |
| 269 if (_json.containsKey("endDate")) { | 269 if (_json.containsKey("endDate")) { |
| 270 endDate = _json["endDate"]; | 270 endDate = _json["endDate"]; |
| 271 } | 271 } |
| 272 if (_json.containsKey("startDate")) { | 272 if (_json.containsKey("startDate")) { |
| 273 startDate = _json["startDate"]; | 273 startDate = _json["startDate"]; |
| 274 } | 274 } |
| 275 } | 275 } |
| 276 | 276 |
| 277 core.Map toJson() { | 277 core.Map<core.String, core.Object> toJson() { |
| 278 var _json = new core.Map(); | 278 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 279 if (endDate != null) { | 279 if (endDate != null) { |
| 280 _json["endDate"] = endDate; | 280 _json["endDate"] = endDate; |
| 281 } | 281 } |
| 282 if (startDate != null) { | 282 if (startDate != null) { |
| 283 _json["startDate"] = startDate; | 283 _json["startDate"] = startDate; |
| 284 } | 284 } |
| 285 return _json; | 285 return _json; |
| 286 } | 286 } |
| 287 } | 287 } |
| 288 | 288 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 300 | 300 |
| 301 DateRangeValues.fromJson(core.Map _json) { | 301 DateRangeValues.fromJson(core.Map _json) { |
| 302 if (_json.containsKey("pivotValueRegions")) { | 302 if (_json.containsKey("pivotValueRegions")) { |
| 303 pivotValueRegions = _json["pivotValueRegions"].map((value) => new PivotVal
ueRegion.fromJson(value)).toList(); | 303 pivotValueRegions = _json["pivotValueRegions"].map((value) => new PivotVal
ueRegion.fromJson(value)).toList(); |
| 304 } | 304 } |
| 305 if (_json.containsKey("values")) { | 305 if (_json.containsKey("values")) { |
| 306 values = _json["values"]; | 306 values = _json["values"]; |
| 307 } | 307 } |
| 308 } | 308 } |
| 309 | 309 |
| 310 core.Map toJson() { | 310 core.Map<core.String, core.Object> toJson() { |
| 311 var _json = new core.Map(); | 311 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 312 if (pivotValueRegions != null) { | 312 if (pivotValueRegions != null) { |
| 313 _json["pivotValueRegions"] = pivotValueRegions.map((value) => (value).toJs
on()).toList(); | 313 _json["pivotValueRegions"] = pivotValueRegions.map((value) => (value).toJs
on()).toList(); |
| 314 } | 314 } |
| 315 if (values != null) { | 315 if (values != null) { |
| 316 _json["values"] = values; | 316 _json["values"] = values; |
| 317 } | 317 } |
| 318 return _json; | 318 return _json; |
| 319 } | 319 } |
| 320 } | 320 } |
| 321 | 321 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 367 |
| 368 Dimension.fromJson(core.Map _json) { | 368 Dimension.fromJson(core.Map _json) { |
| 369 if (_json.containsKey("histogramBuckets")) { | 369 if (_json.containsKey("histogramBuckets")) { |
| 370 histogramBuckets = _json["histogramBuckets"]; | 370 histogramBuckets = _json["histogramBuckets"]; |
| 371 } | 371 } |
| 372 if (_json.containsKey("name")) { | 372 if (_json.containsKey("name")) { |
| 373 name = _json["name"]; | 373 name = _json["name"]; |
| 374 } | 374 } |
| 375 } | 375 } |
| 376 | 376 |
| 377 core.Map toJson() { | 377 core.Map<core.String, core.Object> toJson() { |
| 378 var _json = new core.Map(); | 378 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 379 if (histogramBuckets != null) { | 379 if (histogramBuckets != null) { |
| 380 _json["histogramBuckets"] = histogramBuckets; | 380 _json["histogramBuckets"] = histogramBuckets; |
| 381 } | 381 } |
| 382 if (name != null) { | 382 if (name != null) { |
| 383 _json["name"] = name; | 383 _json["name"] = name; |
| 384 } | 384 } |
| 385 return _json; | 385 return _json; |
| 386 } | 386 } |
| 387 } | 387 } |
| 388 | 388 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 expressions = _json["expressions"]; | 461 expressions = _json["expressions"]; |
| 462 } | 462 } |
| 463 if (_json.containsKey("not")) { | 463 if (_json.containsKey("not")) { |
| 464 not = _json["not"]; | 464 not = _json["not"]; |
| 465 } | 465 } |
| 466 if (_json.containsKey("operator")) { | 466 if (_json.containsKey("operator")) { |
| 467 operator = _json["operator"]; | 467 operator = _json["operator"]; |
| 468 } | 468 } |
| 469 } | 469 } |
| 470 | 470 |
| 471 core.Map toJson() { | 471 core.Map<core.String, core.Object> toJson() { |
| 472 var _json = new core.Map(); | 472 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 473 if (caseSensitive != null) { | 473 if (caseSensitive != null) { |
| 474 _json["caseSensitive"] = caseSensitive; | 474 _json["caseSensitive"] = caseSensitive; |
| 475 } | 475 } |
| 476 if (dimensionName != null) { | 476 if (dimensionName != null) { |
| 477 _json["dimensionName"] = dimensionName; | 477 _json["dimensionName"] = dimensionName; |
| 478 } | 478 } |
| 479 if (expressions != null) { | 479 if (expressions != null) { |
| 480 _json["expressions"] = expressions; | 480 _json["expressions"] = expressions; |
| 481 } | 481 } |
| 482 if (not != null) { | 482 if (not != null) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 513 | 513 |
| 514 DimensionFilterClause.fromJson(core.Map _json) { | 514 DimensionFilterClause.fromJson(core.Map _json) { |
| 515 if (_json.containsKey("filters")) { | 515 if (_json.containsKey("filters")) { |
| 516 filters = _json["filters"].map((value) => new DimensionFilter.fromJson(val
ue)).toList(); | 516 filters = _json["filters"].map((value) => new DimensionFilter.fromJson(val
ue)).toList(); |
| 517 } | 517 } |
| 518 if (_json.containsKey("operator")) { | 518 if (_json.containsKey("operator")) { |
| 519 operator = _json["operator"]; | 519 operator = _json["operator"]; |
| 520 } | 520 } |
| 521 } | 521 } |
| 522 | 522 |
| 523 core.Map toJson() { | 523 core.Map<core.String, core.Object> toJson() { |
| 524 var _json = new core.Map(); | 524 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 525 if (filters != null) { | 525 if (filters != null) { |
| 526 _json["filters"] = filters.map((value) => (value).toJson()).toList(); | 526 _json["filters"] = filters.map((value) => (value).toJson()).toList(); |
| 527 } | 527 } |
| 528 if (operator != null) { | 528 if (operator != null) { |
| 529 _json["operator"] = operator; | 529 _json["operator"] = operator; |
| 530 } | 530 } |
| 531 return _json; | 531 return _json; |
| 532 } | 532 } |
| 533 } | 533 } |
| 534 | 534 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 551 name = _json["name"]; | 551 name = _json["name"]; |
| 552 } | 552 } |
| 553 if (_json.containsKey("sessionSegment")) { | 553 if (_json.containsKey("sessionSegment")) { |
| 554 sessionSegment = new SegmentDefinition.fromJson(_json["sessionSegment"]); | 554 sessionSegment = new SegmentDefinition.fromJson(_json["sessionSegment"]); |
| 555 } | 555 } |
| 556 if (_json.containsKey("userSegment")) { | 556 if (_json.containsKey("userSegment")) { |
| 557 userSegment = new SegmentDefinition.fromJson(_json["userSegment"]); | 557 userSegment = new SegmentDefinition.fromJson(_json["userSegment"]); |
| 558 } | 558 } |
| 559 } | 559 } |
| 560 | 560 |
| 561 core.Map toJson() { | 561 core.Map<core.String, core.Object> toJson() { |
| 562 var _json = new core.Map(); | 562 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 563 if (name != null) { | 563 if (name != null) { |
| 564 _json["name"] = name; | 564 _json["name"] = name; |
| 565 } | 565 } |
| 566 if (sessionSegment != null) { | 566 if (sessionSegment != null) { |
| 567 _json["sessionSegment"] = (sessionSegment).toJson(); | 567 _json["sessionSegment"] = (sessionSegment).toJson(); |
| 568 } | 568 } |
| 569 if (userSegment != null) { | 569 if (userSegment != null) { |
| 570 _json["userSegment"] = (userSegment).toJson(); | 570 _json["userSegment"] = (userSegment).toJson(); |
| 571 } | 571 } |
| 572 return _json; | 572 return _json; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 583 core.List<ReportRequest> reportRequests; | 583 core.List<ReportRequest> reportRequests; |
| 584 | 584 |
| 585 GetReportsRequest(); | 585 GetReportsRequest(); |
| 586 | 586 |
| 587 GetReportsRequest.fromJson(core.Map _json) { | 587 GetReportsRequest.fromJson(core.Map _json) { |
| 588 if (_json.containsKey("reportRequests")) { | 588 if (_json.containsKey("reportRequests")) { |
| 589 reportRequests = _json["reportRequests"].map((value) => new ReportRequest.
fromJson(value)).toList(); | 589 reportRequests = _json["reportRequests"].map((value) => new ReportRequest.
fromJson(value)).toList(); |
| 590 } | 590 } |
| 591 } | 591 } |
| 592 | 592 |
| 593 core.Map toJson() { | 593 core.Map<core.String, core.Object> toJson() { |
| 594 var _json = new core.Map(); | 594 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 595 if (reportRequests != null) { | 595 if (reportRequests != null) { |
| 596 _json["reportRequests"] = reportRequests.map((value) => (value).toJson()).
toList(); | 596 _json["reportRequests"] = reportRequests.map((value) => (value).toJson()).
toList(); |
| 597 } | 597 } |
| 598 return _json; | 598 return _json; |
| 599 } | 599 } |
| 600 } | 600 } |
| 601 | 601 |
| 602 /** | 602 /** |
| 603 * The main response class which holds the reports from the Reporting API | 603 * The main response class which holds the reports from the Reporting API |
| 604 * `batchGet` call. | 604 * `batchGet` call. |
| 605 */ | 605 */ |
| 606 class GetReportsResponse { | 606 class GetReportsResponse { |
| 607 /** Responses corresponding to each of the request. */ | 607 /** Responses corresponding to each of the request. */ |
| 608 core.List<Report> reports; | 608 core.List<Report> reports; |
| 609 | 609 |
| 610 GetReportsResponse(); | 610 GetReportsResponse(); |
| 611 | 611 |
| 612 GetReportsResponse.fromJson(core.Map _json) { | 612 GetReportsResponse.fromJson(core.Map _json) { |
| 613 if (_json.containsKey("reports")) { | 613 if (_json.containsKey("reports")) { |
| 614 reports = _json["reports"].map((value) => new Report.fromJson(value)).toLi
st(); | 614 reports = _json["reports"].map((value) => new Report.fromJson(value)).toLi
st(); |
| 615 } | 615 } |
| 616 } | 616 } |
| 617 | 617 |
| 618 core.Map toJson() { | 618 core.Map<core.String, core.Object> toJson() { |
| 619 var _json = new core.Map(); | 619 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 620 if (reports != null) { | 620 if (reports != null) { |
| 621 _json["reports"] = reports.map((value) => (value).toJson()).toList(); | 621 _json["reports"] = reports.map((value) => (value).toJson()).toList(); |
| 622 } | 622 } |
| 623 return _json; | 623 return _json; |
| 624 } | 624 } |
| 625 } | 625 } |
| 626 | 626 |
| 627 /** | 627 /** |
| 628 * [Metrics](https://support.google.com/analytics/answer/1033861) | 628 * [Metrics](https://support.google.com/analytics/answer/1033861) |
| 629 * are the quantitative measurements. For example, the metric `ga:users` | 629 * are the quantitative measurements. For example, the metric `ga:users` |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 alias = _json["alias"]; | 669 alias = _json["alias"]; |
| 670 } | 670 } |
| 671 if (_json.containsKey("expression")) { | 671 if (_json.containsKey("expression")) { |
| 672 expression = _json["expression"]; | 672 expression = _json["expression"]; |
| 673 } | 673 } |
| 674 if (_json.containsKey("formattingType")) { | 674 if (_json.containsKey("formattingType")) { |
| 675 formattingType = _json["formattingType"]; | 675 formattingType = _json["formattingType"]; |
| 676 } | 676 } |
| 677 } | 677 } |
| 678 | 678 |
| 679 core.Map toJson() { | 679 core.Map<core.String, core.Object> toJson() { |
| 680 var _json = new core.Map(); | 680 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 681 if (alias != null) { | 681 if (alias != null) { |
| 682 _json["alias"] = alias; | 682 _json["alias"] = alias; |
| 683 } | 683 } |
| 684 if (expression != null) { | 684 if (expression != null) { |
| 685 _json["expression"] = expression; | 685 _json["expression"] = expression; |
| 686 } | 686 } |
| 687 if (formattingType != null) { | 687 if (formattingType != null) { |
| 688 _json["formattingType"] = formattingType; | 688 _json["formattingType"] = formattingType; |
| 689 } | 689 } |
| 690 return _json; | 690 return _json; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 metricName = _json["metricName"]; | 735 metricName = _json["metricName"]; |
| 736 } | 736 } |
| 737 if (_json.containsKey("not")) { | 737 if (_json.containsKey("not")) { |
| 738 not = _json["not"]; | 738 not = _json["not"]; |
| 739 } | 739 } |
| 740 if (_json.containsKey("operator")) { | 740 if (_json.containsKey("operator")) { |
| 741 operator = _json["operator"]; | 741 operator = _json["operator"]; |
| 742 } | 742 } |
| 743 } | 743 } |
| 744 | 744 |
| 745 core.Map toJson() { | 745 core.Map<core.String, core.Object> toJson() { |
| 746 var _json = new core.Map(); | 746 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 747 if (comparisonValue != null) { | 747 if (comparisonValue != null) { |
| 748 _json["comparisonValue"] = comparisonValue; | 748 _json["comparisonValue"] = comparisonValue; |
| 749 } | 749 } |
| 750 if (metricName != null) { | 750 if (metricName != null) { |
| 751 _json["metricName"] = metricName; | 751 _json["metricName"] = metricName; |
| 752 } | 752 } |
| 753 if (not != null) { | 753 if (not != null) { |
| 754 _json["not"] = not; | 754 _json["not"] = not; |
| 755 } | 755 } |
| 756 if (operator != null) { | 756 if (operator != null) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 784 | 784 |
| 785 MetricFilterClause.fromJson(core.Map _json) { | 785 MetricFilterClause.fromJson(core.Map _json) { |
| 786 if (_json.containsKey("filters")) { | 786 if (_json.containsKey("filters")) { |
| 787 filters = _json["filters"].map((value) => new MetricFilter.fromJson(value)
).toList(); | 787 filters = _json["filters"].map((value) => new MetricFilter.fromJson(value)
).toList(); |
| 788 } | 788 } |
| 789 if (_json.containsKey("operator")) { | 789 if (_json.containsKey("operator")) { |
| 790 operator = _json["operator"]; | 790 operator = _json["operator"]; |
| 791 } | 791 } |
| 792 } | 792 } |
| 793 | 793 |
| 794 core.Map toJson() { | 794 core.Map<core.String, core.Object> toJson() { |
| 795 var _json = new core.Map(); | 795 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 796 if (filters != null) { | 796 if (filters != null) { |
| 797 _json["filters"] = filters.map((value) => (value).toJson()).toList(); | 797 _json["filters"] = filters.map((value) => (value).toJson()).toList(); |
| 798 } | 798 } |
| 799 if (operator != null) { | 799 if (operator != null) { |
| 800 _json["operator"] = operator; | 800 _json["operator"] = operator; |
| 801 } | 801 } |
| 802 return _json; | 802 return _json; |
| 803 } | 803 } |
| 804 } | 804 } |
| 805 | 805 |
| 806 /** The headers for the metrics. */ | 806 /** The headers for the metrics. */ |
| 807 class MetricHeader { | 807 class MetricHeader { |
| 808 /** Headers for the metrics in the response. */ | 808 /** Headers for the metrics in the response. */ |
| 809 core.List<MetricHeaderEntry> metricHeaderEntries; | 809 core.List<MetricHeaderEntry> metricHeaderEntries; |
| 810 /** Headers for the pivots in the response. */ | 810 /** Headers for the pivots in the response. */ |
| 811 core.List<PivotHeader> pivotHeaders; | 811 core.List<PivotHeader> pivotHeaders; |
| 812 | 812 |
| 813 MetricHeader(); | 813 MetricHeader(); |
| 814 | 814 |
| 815 MetricHeader.fromJson(core.Map _json) { | 815 MetricHeader.fromJson(core.Map _json) { |
| 816 if (_json.containsKey("metricHeaderEntries")) { | 816 if (_json.containsKey("metricHeaderEntries")) { |
| 817 metricHeaderEntries = _json["metricHeaderEntries"].map((value) => new Metr
icHeaderEntry.fromJson(value)).toList(); | 817 metricHeaderEntries = _json["metricHeaderEntries"].map((value) => new Metr
icHeaderEntry.fromJson(value)).toList(); |
| 818 } | 818 } |
| 819 if (_json.containsKey("pivotHeaders")) { | 819 if (_json.containsKey("pivotHeaders")) { |
| 820 pivotHeaders = _json["pivotHeaders"].map((value) => new PivotHeader.fromJs
on(value)).toList(); | 820 pivotHeaders = _json["pivotHeaders"].map((value) => new PivotHeader.fromJs
on(value)).toList(); |
| 821 } | 821 } |
| 822 } | 822 } |
| 823 | 823 |
| 824 core.Map toJson() { | 824 core.Map<core.String, core.Object> toJson() { |
| 825 var _json = new core.Map(); | 825 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 826 if (metricHeaderEntries != null) { | 826 if (metricHeaderEntries != null) { |
| 827 _json["metricHeaderEntries"] = metricHeaderEntries.map((value) => (value).
toJson()).toList(); | 827 _json["metricHeaderEntries"] = metricHeaderEntries.map((value) => (value).
toJson()).toList(); |
| 828 } | 828 } |
| 829 if (pivotHeaders != null) { | 829 if (pivotHeaders != null) { |
| 830 _json["pivotHeaders"] = pivotHeaders.map((value) => (value).toJson()).toLi
st(); | 830 _json["pivotHeaders"] = pivotHeaders.map((value) => (value).toJson()).toLi
st(); |
| 831 } | 831 } |
| 832 return _json; | 832 return _json; |
| 833 } | 833 } |
| 834 } | 834 } |
| 835 | 835 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 853 | 853 |
| 854 MetricHeaderEntry.fromJson(core.Map _json) { | 854 MetricHeaderEntry.fromJson(core.Map _json) { |
| 855 if (_json.containsKey("name")) { | 855 if (_json.containsKey("name")) { |
| 856 name = _json["name"]; | 856 name = _json["name"]; |
| 857 } | 857 } |
| 858 if (_json.containsKey("type")) { | 858 if (_json.containsKey("type")) { |
| 859 type = _json["type"]; | 859 type = _json["type"]; |
| 860 } | 860 } |
| 861 } | 861 } |
| 862 | 862 |
| 863 core.Map toJson() { | 863 core.Map<core.String, core.Object> toJson() { |
| 864 var _json = new core.Map(); | 864 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 865 if (name != null) { | 865 if (name != null) { |
| 866 _json["name"] = name; | 866 _json["name"] = name; |
| 867 } | 867 } |
| 868 if (type != null) { | 868 if (type != null) { |
| 869 _json["type"] = type; | 869 _json["type"] = type; |
| 870 } | 870 } |
| 871 return _json; | 871 return _json; |
| 872 } | 872 } |
| 873 } | 873 } |
| 874 | 874 |
| 875 /** | 875 /** |
| 876 * A list of segment filters in the `OR` group are combined with the logical OR | 876 * A list of segment filters in the `OR` group are combined with the logical OR |
| 877 * operator. | 877 * operator. |
| 878 */ | 878 */ |
| 879 class OrFiltersForSegment { | 879 class OrFiltersForSegment { |
| 880 /** List of segment filters to be combined with a `OR` operator. */ | 880 /** List of segment filters to be combined with a `OR` operator. */ |
| 881 core.List<SegmentFilterClause> segmentFilterClauses; | 881 core.List<SegmentFilterClause> segmentFilterClauses; |
| 882 | 882 |
| 883 OrFiltersForSegment(); | 883 OrFiltersForSegment(); |
| 884 | 884 |
| 885 OrFiltersForSegment.fromJson(core.Map _json) { | 885 OrFiltersForSegment.fromJson(core.Map _json) { |
| 886 if (_json.containsKey("segmentFilterClauses")) { | 886 if (_json.containsKey("segmentFilterClauses")) { |
| 887 segmentFilterClauses = _json["segmentFilterClauses"].map((value) => new Se
gmentFilterClause.fromJson(value)).toList(); | 887 segmentFilterClauses = _json["segmentFilterClauses"].map((value) => new Se
gmentFilterClause.fromJson(value)).toList(); |
| 888 } | 888 } |
| 889 } | 889 } |
| 890 | 890 |
| 891 core.Map toJson() { | 891 core.Map<core.String, core.Object> toJson() { |
| 892 var _json = new core.Map(); | 892 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 893 if (segmentFilterClauses != null) { | 893 if (segmentFilterClauses != null) { |
| 894 _json["segmentFilterClauses"] = segmentFilterClauses.map((value) => (value
).toJson()).toList(); | 894 _json["segmentFilterClauses"] = segmentFilterClauses.map((value) => (value
).toJson()).toList(); |
| 895 } | 895 } |
| 896 return _json; | 896 return _json; |
| 897 } | 897 } |
| 898 } | 898 } |
| 899 | 899 |
| 900 /** Specifies the sorting options. */ | 900 /** Specifies the sorting options. */ |
| 901 class OrderBy { | 901 class OrderBy { |
| 902 /** | 902 /** |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 fieldName = _json["fieldName"]; | 951 fieldName = _json["fieldName"]; |
| 952 } | 952 } |
| 953 if (_json.containsKey("orderType")) { | 953 if (_json.containsKey("orderType")) { |
| 954 orderType = _json["orderType"]; | 954 orderType = _json["orderType"]; |
| 955 } | 955 } |
| 956 if (_json.containsKey("sortOrder")) { | 956 if (_json.containsKey("sortOrder")) { |
| 957 sortOrder = _json["sortOrder"]; | 957 sortOrder = _json["sortOrder"]; |
| 958 } | 958 } |
| 959 } | 959 } |
| 960 | 960 |
| 961 core.Map toJson() { | 961 core.Map<core.String, core.Object> toJson() { |
| 962 var _json = new core.Map(); | 962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 963 if (fieldName != null) { | 963 if (fieldName != null) { |
| 964 _json["fieldName"] = fieldName; | 964 _json["fieldName"] = fieldName; |
| 965 } | 965 } |
| 966 if (orderType != null) { | 966 if (orderType != null) { |
| 967 _json["orderType"] = orderType; | 967 _json["orderType"] = orderType; |
| 968 } | 968 } |
| 969 if (sortOrder != null) { | 969 if (sortOrder != null) { |
| 970 _json["sortOrder"] = sortOrder; | 970 _json["sortOrder"] = sortOrder; |
| 971 } | 971 } |
| 972 return _json; | 972 return _json; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 maxGroupCount = _json["maxGroupCount"]; | 1035 maxGroupCount = _json["maxGroupCount"]; |
| 1036 } | 1036 } |
| 1037 if (_json.containsKey("metrics")) { | 1037 if (_json.containsKey("metrics")) { |
| 1038 metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toLi
st(); | 1038 metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toLi
st(); |
| 1039 } | 1039 } |
| 1040 if (_json.containsKey("startGroup")) { | 1040 if (_json.containsKey("startGroup")) { |
| 1041 startGroup = _json["startGroup"]; | 1041 startGroup = _json["startGroup"]; |
| 1042 } | 1042 } |
| 1043 } | 1043 } |
| 1044 | 1044 |
| 1045 core.Map toJson() { | 1045 core.Map<core.String, core.Object> toJson() { |
| 1046 var _json = new core.Map(); | 1046 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1047 if (dimensionFilterClauses != null) { | 1047 if (dimensionFilterClauses != null) { |
| 1048 _json["dimensionFilterClauses"] = dimensionFilterClauses.map((value) => (v
alue).toJson()).toList(); | 1048 _json["dimensionFilterClauses"] = dimensionFilterClauses.map((value) => (v
alue).toJson()).toList(); |
| 1049 } | 1049 } |
| 1050 if (dimensions != null) { | 1050 if (dimensions != null) { |
| 1051 _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList()
; | 1051 _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList()
; |
| 1052 } | 1052 } |
| 1053 if (maxGroupCount != null) { | 1053 if (maxGroupCount != null) { |
| 1054 _json["maxGroupCount"] = maxGroupCount; | 1054 _json["maxGroupCount"] = maxGroupCount; |
| 1055 } | 1055 } |
| 1056 if (metrics != null) { | 1056 if (metrics != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1074 | 1074 |
| 1075 PivotHeader.fromJson(core.Map _json) { | 1075 PivotHeader.fromJson(core.Map _json) { |
| 1076 if (_json.containsKey("pivotHeaderEntries")) { | 1076 if (_json.containsKey("pivotHeaderEntries")) { |
| 1077 pivotHeaderEntries = _json["pivotHeaderEntries"].map((value) => new PivotH
eaderEntry.fromJson(value)).toList(); | 1077 pivotHeaderEntries = _json["pivotHeaderEntries"].map((value) => new PivotH
eaderEntry.fromJson(value)).toList(); |
| 1078 } | 1078 } |
| 1079 if (_json.containsKey("totalPivotGroupsCount")) { | 1079 if (_json.containsKey("totalPivotGroupsCount")) { |
| 1080 totalPivotGroupsCount = _json["totalPivotGroupsCount"]; | 1080 totalPivotGroupsCount = _json["totalPivotGroupsCount"]; |
| 1081 } | 1081 } |
| 1082 } | 1082 } |
| 1083 | 1083 |
| 1084 core.Map toJson() { | 1084 core.Map<core.String, core.Object> toJson() { |
| 1085 var _json = new core.Map(); | 1085 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1086 if (pivotHeaderEntries != null) { | 1086 if (pivotHeaderEntries != null) { |
| 1087 _json["pivotHeaderEntries"] = pivotHeaderEntries.map((value) => (value).to
Json()).toList(); | 1087 _json["pivotHeaderEntries"] = pivotHeaderEntries.map((value) => (value).to
Json()).toList(); |
| 1088 } | 1088 } |
| 1089 if (totalPivotGroupsCount != null) { | 1089 if (totalPivotGroupsCount != null) { |
| 1090 _json["totalPivotGroupsCount"] = totalPivotGroupsCount; | 1090 _json["totalPivotGroupsCount"] = totalPivotGroupsCount; |
| 1091 } | 1091 } |
| 1092 return _json; | 1092 return _json; |
| 1093 } | 1093 } |
| 1094 } | 1094 } |
| 1095 | 1095 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1112 dimensionNames = _json["dimensionNames"]; | 1112 dimensionNames = _json["dimensionNames"]; |
| 1113 } | 1113 } |
| 1114 if (_json.containsKey("dimensionValues")) { | 1114 if (_json.containsKey("dimensionValues")) { |
| 1115 dimensionValues = _json["dimensionValues"]; | 1115 dimensionValues = _json["dimensionValues"]; |
| 1116 } | 1116 } |
| 1117 if (_json.containsKey("metric")) { | 1117 if (_json.containsKey("metric")) { |
| 1118 metric = new MetricHeaderEntry.fromJson(_json["metric"]); | 1118 metric = new MetricHeaderEntry.fromJson(_json["metric"]); |
| 1119 } | 1119 } |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 core.Map toJson() { | 1122 core.Map<core.String, core.Object> toJson() { |
| 1123 var _json = new core.Map(); | 1123 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1124 if (dimensionNames != null) { | 1124 if (dimensionNames != null) { |
| 1125 _json["dimensionNames"] = dimensionNames; | 1125 _json["dimensionNames"] = dimensionNames; |
| 1126 } | 1126 } |
| 1127 if (dimensionValues != null) { | 1127 if (dimensionValues != null) { |
| 1128 _json["dimensionValues"] = dimensionValues; | 1128 _json["dimensionValues"] = dimensionValues; |
| 1129 } | 1129 } |
| 1130 if (metric != null) { | 1130 if (metric != null) { |
| 1131 _json["metric"] = (metric).toJson(); | 1131 _json["metric"] = (metric).toJson(); |
| 1132 } | 1132 } |
| 1133 return _json; | 1133 return _json; |
| 1134 } | 1134 } |
| 1135 } | 1135 } |
| 1136 | 1136 |
| 1137 /** The metric values in the pivot region. */ | 1137 /** The metric values in the pivot region. */ |
| 1138 class PivotValueRegion { | 1138 class PivotValueRegion { |
| 1139 /** The values of the metrics in each of the pivot regions. */ | 1139 /** The values of the metrics in each of the pivot regions. */ |
| 1140 core.List<core.String> values; | 1140 core.List<core.String> values; |
| 1141 | 1141 |
| 1142 PivotValueRegion(); | 1142 PivotValueRegion(); |
| 1143 | 1143 |
| 1144 PivotValueRegion.fromJson(core.Map _json) { | 1144 PivotValueRegion.fromJson(core.Map _json) { |
| 1145 if (_json.containsKey("values")) { | 1145 if (_json.containsKey("values")) { |
| 1146 values = _json["values"]; | 1146 values = _json["values"]; |
| 1147 } | 1147 } |
| 1148 } | 1148 } |
| 1149 | 1149 |
| 1150 core.Map toJson() { | 1150 core.Map<core.String, core.Object> toJson() { |
| 1151 var _json = new core.Map(); | 1151 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1152 if (values != null) { | 1152 if (values != null) { |
| 1153 _json["values"] = values; | 1153 _json["values"] = values; |
| 1154 } | 1154 } |
| 1155 return _json; | 1155 return _json; |
| 1156 } | 1156 } |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 /** The data response corresponding to the request. */ | 1159 /** The data response corresponding to the request. */ |
| 1160 class Report { | 1160 class Report { |
| 1161 /** The column headers. */ | 1161 /** The column headers. */ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1172 columnHeader = new ColumnHeader.fromJson(_json["columnHeader"]); | 1172 columnHeader = new ColumnHeader.fromJson(_json["columnHeader"]); |
| 1173 } | 1173 } |
| 1174 if (_json.containsKey("data")) { | 1174 if (_json.containsKey("data")) { |
| 1175 data = new ReportData.fromJson(_json["data"]); | 1175 data = new ReportData.fromJson(_json["data"]); |
| 1176 } | 1176 } |
| 1177 if (_json.containsKey("nextPageToken")) { | 1177 if (_json.containsKey("nextPageToken")) { |
| 1178 nextPageToken = _json["nextPageToken"]; | 1178 nextPageToken = _json["nextPageToken"]; |
| 1179 } | 1179 } |
| 1180 } | 1180 } |
| 1181 | 1181 |
| 1182 core.Map toJson() { | 1182 core.Map<core.String, core.Object> toJson() { |
| 1183 var _json = new core.Map(); | 1183 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1184 if (columnHeader != null) { | 1184 if (columnHeader != null) { |
| 1185 _json["columnHeader"] = (columnHeader).toJson(); | 1185 _json["columnHeader"] = (columnHeader).toJson(); |
| 1186 } | 1186 } |
| 1187 if (data != null) { | 1187 if (data != null) { |
| 1188 _json["data"] = (data).toJson(); | 1188 _json["data"] = (data).toJson(); |
| 1189 } | 1189 } |
| 1190 if (nextPageToken != null) { | 1190 if (nextPageToken != null) { |
| 1191 _json["nextPageToken"] = nextPageToken; | 1191 _json["nextPageToken"] = nextPageToken; |
| 1192 } | 1192 } |
| 1193 return _json; | 1193 return _json; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 samplesReadCounts = _json["samplesReadCounts"]; | 1279 samplesReadCounts = _json["samplesReadCounts"]; |
| 1280 } | 1280 } |
| 1281 if (_json.containsKey("samplingSpaceSizes")) { | 1281 if (_json.containsKey("samplingSpaceSizes")) { |
| 1282 samplingSpaceSizes = _json["samplingSpaceSizes"]; | 1282 samplingSpaceSizes = _json["samplingSpaceSizes"]; |
| 1283 } | 1283 } |
| 1284 if (_json.containsKey("totals")) { | 1284 if (_json.containsKey("totals")) { |
| 1285 totals = _json["totals"].map((value) => new DateRangeValues.fromJson(value
)).toList(); | 1285 totals = _json["totals"].map((value) => new DateRangeValues.fromJson(value
)).toList(); |
| 1286 } | 1286 } |
| 1287 } | 1287 } |
| 1288 | 1288 |
| 1289 core.Map toJson() { | 1289 core.Map<core.String, core.Object> toJson() { |
| 1290 var _json = new core.Map(); | 1290 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1291 if (dataLastRefreshed != null) { | 1291 if (dataLastRefreshed != null) { |
| 1292 _json["dataLastRefreshed"] = dataLastRefreshed; | 1292 _json["dataLastRefreshed"] = dataLastRefreshed; |
| 1293 } | 1293 } |
| 1294 if (isDataGolden != null) { | 1294 if (isDataGolden != null) { |
| 1295 _json["isDataGolden"] = isDataGolden; | 1295 _json["isDataGolden"] = isDataGolden; |
| 1296 } | 1296 } |
| 1297 if (maximums != null) { | 1297 if (maximums != null) { |
| 1298 _json["maximums"] = maximums.map((value) => (value).toJson()).toList(); | 1298 _json["maximums"] = maximums.map((value) => (value).toJson()).toList(); |
| 1299 } | 1299 } |
| 1300 if (minimums != null) { | 1300 if (minimums != null) { |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1505 samplingLevel = _json["samplingLevel"]; | 1505 samplingLevel = _json["samplingLevel"]; |
| 1506 } | 1506 } |
| 1507 if (_json.containsKey("segments")) { | 1507 if (_json.containsKey("segments")) { |
| 1508 segments = _json["segments"].map((value) => new Segment.fromJson(value)).t
oList(); | 1508 segments = _json["segments"].map((value) => new Segment.fromJson(value)).t
oList(); |
| 1509 } | 1509 } |
| 1510 if (_json.containsKey("viewId")) { | 1510 if (_json.containsKey("viewId")) { |
| 1511 viewId = _json["viewId"]; | 1511 viewId = _json["viewId"]; |
| 1512 } | 1512 } |
| 1513 } | 1513 } |
| 1514 | 1514 |
| 1515 core.Map toJson() { | 1515 core.Map<core.String, core.Object> toJson() { |
| 1516 var _json = new core.Map(); | 1516 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1517 if (cohortGroup != null) { | 1517 if (cohortGroup != null) { |
| 1518 _json["cohortGroup"] = (cohortGroup).toJson(); | 1518 _json["cohortGroup"] = (cohortGroup).toJson(); |
| 1519 } | 1519 } |
| 1520 if (dateRanges != null) { | 1520 if (dateRanges != null) { |
| 1521 _json["dateRanges"] = dateRanges.map((value) => (value).toJson()).toList()
; | 1521 _json["dateRanges"] = dateRanges.map((value) => (value).toJson()).toList()
; |
| 1522 } | 1522 } |
| 1523 if (dimensionFilterClauses != null) { | 1523 if (dimensionFilterClauses != null) { |
| 1524 _json["dimensionFilterClauses"] = dimensionFilterClauses.map((value) => (v
alue).toJson()).toList(); | 1524 _json["dimensionFilterClauses"] = dimensionFilterClauses.map((value) => (v
alue).toJson()).toList(); |
| 1525 } | 1525 } |
| 1526 if (dimensions != null) { | 1526 if (dimensions != null) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 | 1580 |
| 1581 ReportRow.fromJson(core.Map _json) { | 1581 ReportRow.fromJson(core.Map _json) { |
| 1582 if (_json.containsKey("dimensions")) { | 1582 if (_json.containsKey("dimensions")) { |
| 1583 dimensions = _json["dimensions"]; | 1583 dimensions = _json["dimensions"]; |
| 1584 } | 1584 } |
| 1585 if (_json.containsKey("metrics")) { | 1585 if (_json.containsKey("metrics")) { |
| 1586 metrics = _json["metrics"].map((value) => new DateRangeValues.fromJson(val
ue)).toList(); | 1586 metrics = _json["metrics"].map((value) => new DateRangeValues.fromJson(val
ue)).toList(); |
| 1587 } | 1587 } |
| 1588 } | 1588 } |
| 1589 | 1589 |
| 1590 core.Map toJson() { | 1590 core.Map<core.String, core.Object> toJson() { |
| 1591 var _json = new core.Map(); | 1591 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1592 if (dimensions != null) { | 1592 if (dimensions != null) { |
| 1593 _json["dimensions"] = dimensions; | 1593 _json["dimensions"] = dimensions; |
| 1594 } | 1594 } |
| 1595 if (metrics != null) { | 1595 if (metrics != null) { |
| 1596 _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); | 1596 _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); |
| 1597 } | 1597 } |
| 1598 return _json; | 1598 return _json; |
| 1599 } | 1599 } |
| 1600 } | 1600 } |
| 1601 | 1601 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1616 | 1616 |
| 1617 Segment.fromJson(core.Map _json) { | 1617 Segment.fromJson(core.Map _json) { |
| 1618 if (_json.containsKey("dynamicSegment")) { | 1618 if (_json.containsKey("dynamicSegment")) { |
| 1619 dynamicSegment = new DynamicSegment.fromJson(_json["dynamicSegment"]); | 1619 dynamicSegment = new DynamicSegment.fromJson(_json["dynamicSegment"]); |
| 1620 } | 1620 } |
| 1621 if (_json.containsKey("segmentId")) { | 1621 if (_json.containsKey("segmentId")) { |
| 1622 segmentId = _json["segmentId"]; | 1622 segmentId = _json["segmentId"]; |
| 1623 } | 1623 } |
| 1624 } | 1624 } |
| 1625 | 1625 |
| 1626 core.Map toJson() { | 1626 core.Map<core.String, core.Object> toJson() { |
| 1627 var _json = new core.Map(); | 1627 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1628 if (dynamicSegment != null) { | 1628 if (dynamicSegment != null) { |
| 1629 _json["dynamicSegment"] = (dynamicSegment).toJson(); | 1629 _json["dynamicSegment"] = (dynamicSegment).toJson(); |
| 1630 } | 1630 } |
| 1631 if (segmentId != null) { | 1631 if (segmentId != null) { |
| 1632 _json["segmentId"] = segmentId; | 1632 _json["segmentId"] = segmentId; |
| 1633 } | 1633 } |
| 1634 return _json; | 1634 return _json; |
| 1635 } | 1635 } |
| 1636 } | 1636 } |
| 1637 | 1637 |
| 1638 /** | 1638 /** |
| 1639 * SegmentDefinition defines the segment to be a set of SegmentFilters which | 1639 * SegmentDefinition defines the segment to be a set of SegmentFilters which |
| 1640 * are combined together with a logical `AND` operation. | 1640 * are combined together with a logical `AND` operation. |
| 1641 */ | 1641 */ |
| 1642 class SegmentDefinition { | 1642 class SegmentDefinition { |
| 1643 /** | 1643 /** |
| 1644 * A segment is defined by a set of segment filters which are combined | 1644 * A segment is defined by a set of segment filters which are combined |
| 1645 * together with a logical `AND` operation. | 1645 * together with a logical `AND` operation. |
| 1646 */ | 1646 */ |
| 1647 core.List<SegmentFilter> segmentFilters; | 1647 core.List<SegmentFilter> segmentFilters; |
| 1648 | 1648 |
| 1649 SegmentDefinition(); | 1649 SegmentDefinition(); |
| 1650 | 1650 |
| 1651 SegmentDefinition.fromJson(core.Map _json) { | 1651 SegmentDefinition.fromJson(core.Map _json) { |
| 1652 if (_json.containsKey("segmentFilters")) { | 1652 if (_json.containsKey("segmentFilters")) { |
| 1653 segmentFilters = _json["segmentFilters"].map((value) => new SegmentFilter.
fromJson(value)).toList(); | 1653 segmentFilters = _json["segmentFilters"].map((value) => new SegmentFilter.
fromJson(value)).toList(); |
| 1654 } | 1654 } |
| 1655 } | 1655 } |
| 1656 | 1656 |
| 1657 core.Map toJson() { | 1657 core.Map<core.String, core.Object> toJson() { |
| 1658 var _json = new core.Map(); | 1658 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1659 if (segmentFilters != null) { | 1659 if (segmentFilters != null) { |
| 1660 _json["segmentFilters"] = segmentFilters.map((value) => (value).toJson()).
toList(); | 1660 _json["segmentFilters"] = segmentFilters.map((value) => (value).toJson()).
toList(); |
| 1661 } | 1661 } |
| 1662 return _json; | 1662 return _json; |
| 1663 } | 1663 } |
| 1664 } | 1664 } |
| 1665 | 1665 |
| 1666 /** Dimension filter specifies the filtering options on a dimension. */ | 1666 /** Dimension filter specifies the filtering options on a dimension. */ |
| 1667 class SegmentDimensionFilter { | 1667 class SegmentDimensionFilter { |
| 1668 /** Should the match be case sensitive, ignored for `IN_LIST` operator. */ | 1668 /** Should the match be case sensitive, ignored for `IN_LIST` operator. */ |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1737 maxComparisonValue = _json["maxComparisonValue"]; | 1737 maxComparisonValue = _json["maxComparisonValue"]; |
| 1738 } | 1738 } |
| 1739 if (_json.containsKey("minComparisonValue")) { | 1739 if (_json.containsKey("minComparisonValue")) { |
| 1740 minComparisonValue = _json["minComparisonValue"]; | 1740 minComparisonValue = _json["minComparisonValue"]; |
| 1741 } | 1741 } |
| 1742 if (_json.containsKey("operator")) { | 1742 if (_json.containsKey("operator")) { |
| 1743 operator = _json["operator"]; | 1743 operator = _json["operator"]; |
| 1744 } | 1744 } |
| 1745 } | 1745 } |
| 1746 | 1746 |
| 1747 core.Map toJson() { | 1747 core.Map<core.String, core.Object> toJson() { |
| 1748 var _json = new core.Map(); | 1748 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1749 if (caseSensitive != null) { | 1749 if (caseSensitive != null) { |
| 1750 _json["caseSensitive"] = caseSensitive; | 1750 _json["caseSensitive"] = caseSensitive; |
| 1751 } | 1751 } |
| 1752 if (dimensionName != null) { | 1752 if (dimensionName != null) { |
| 1753 _json["dimensionName"] = dimensionName; | 1753 _json["dimensionName"] = dimensionName; |
| 1754 } | 1754 } |
| 1755 if (expressions != null) { | 1755 if (expressions != null) { |
| 1756 _json["expressions"] = expressions; | 1756 _json["expressions"] = expressions; |
| 1757 } | 1757 } |
| 1758 if (maxComparisonValue != null) { | 1758 if (maxComparisonValue != null) { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1816 not = _json["not"]; | 1816 not = _json["not"]; |
| 1817 } | 1817 } |
| 1818 if (_json.containsKey("sequenceSegment")) { | 1818 if (_json.containsKey("sequenceSegment")) { |
| 1819 sequenceSegment = new SequenceSegment.fromJson(_json["sequenceSegment"]); | 1819 sequenceSegment = new SequenceSegment.fromJson(_json["sequenceSegment"]); |
| 1820 } | 1820 } |
| 1821 if (_json.containsKey("simpleSegment")) { | 1821 if (_json.containsKey("simpleSegment")) { |
| 1822 simpleSegment = new SimpleSegment.fromJson(_json["simpleSegment"]); | 1822 simpleSegment = new SimpleSegment.fromJson(_json["simpleSegment"]); |
| 1823 } | 1823 } |
| 1824 } | 1824 } |
| 1825 | 1825 |
| 1826 core.Map toJson() { | 1826 core.Map<core.String, core.Object> toJson() { |
| 1827 var _json = new core.Map(); | 1827 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1828 if (not != null) { | 1828 if (not != null) { |
| 1829 _json["not"] = not; | 1829 _json["not"] = not; |
| 1830 } | 1830 } |
| 1831 if (sequenceSegment != null) { | 1831 if (sequenceSegment != null) { |
| 1832 _json["sequenceSegment"] = (sequenceSegment).toJson(); | 1832 _json["sequenceSegment"] = (sequenceSegment).toJson(); |
| 1833 } | 1833 } |
| 1834 if (simpleSegment != null) { | 1834 if (simpleSegment != null) { |
| 1835 _json["simpleSegment"] = (simpleSegment).toJson(); | 1835 _json["simpleSegment"] = (simpleSegment).toJson(); |
| 1836 } | 1836 } |
| 1837 return _json; | 1837 return _json; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1857 dimensionFilter = new SegmentDimensionFilter.fromJson(_json["dimensionFilt
er"]); | 1857 dimensionFilter = new SegmentDimensionFilter.fromJson(_json["dimensionFilt
er"]); |
| 1858 } | 1858 } |
| 1859 if (_json.containsKey("metricFilter")) { | 1859 if (_json.containsKey("metricFilter")) { |
| 1860 metricFilter = new SegmentMetricFilter.fromJson(_json["metricFilter"]); | 1860 metricFilter = new SegmentMetricFilter.fromJson(_json["metricFilter"]); |
| 1861 } | 1861 } |
| 1862 if (_json.containsKey("not")) { | 1862 if (_json.containsKey("not")) { |
| 1863 not = _json["not"]; | 1863 not = _json["not"]; |
| 1864 } | 1864 } |
| 1865 } | 1865 } |
| 1866 | 1866 |
| 1867 core.Map toJson() { | 1867 core.Map<core.String, core.Object> toJson() { |
| 1868 var _json = new core.Map(); | 1868 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1869 if (dimensionFilter != null) { | 1869 if (dimensionFilter != null) { |
| 1870 _json["dimensionFilter"] = (dimensionFilter).toJson(); | 1870 _json["dimensionFilter"] = (dimensionFilter).toJson(); |
| 1871 } | 1871 } |
| 1872 if (metricFilter != null) { | 1872 if (metricFilter != null) { |
| 1873 _json["metricFilter"] = (metricFilter).toJson(); | 1873 _json["metricFilter"] = (metricFilter).toJson(); |
| 1874 } | 1874 } |
| 1875 if (not != null) { | 1875 if (not != null) { |
| 1876 _json["not"] = not; | 1876 _json["not"] = not; |
| 1877 } | 1877 } |
| 1878 return _json; | 1878 return _json; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1938 metricName = _json["metricName"]; | 1938 metricName = _json["metricName"]; |
| 1939 } | 1939 } |
| 1940 if (_json.containsKey("operator")) { | 1940 if (_json.containsKey("operator")) { |
| 1941 operator = _json["operator"]; | 1941 operator = _json["operator"]; |
| 1942 } | 1942 } |
| 1943 if (_json.containsKey("scope")) { | 1943 if (_json.containsKey("scope")) { |
| 1944 scope = _json["scope"]; | 1944 scope = _json["scope"]; |
| 1945 } | 1945 } |
| 1946 } | 1946 } |
| 1947 | 1947 |
| 1948 core.Map toJson() { | 1948 core.Map<core.String, core.Object> toJson() { |
| 1949 var _json = new core.Map(); | 1949 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1950 if (comparisonValue != null) { | 1950 if (comparisonValue != null) { |
| 1951 _json["comparisonValue"] = comparisonValue; | 1951 _json["comparisonValue"] = comparisonValue; |
| 1952 } | 1952 } |
| 1953 if (maxComparisonValue != null) { | 1953 if (maxComparisonValue != null) { |
| 1954 _json["maxComparisonValue"] = maxComparisonValue; | 1954 _json["maxComparisonValue"] = maxComparisonValue; |
| 1955 } | 1955 } |
| 1956 if (metricName != null) { | 1956 if (metricName != null) { |
| 1957 _json["metricName"] = metricName; | 1957 _json["metricName"] = metricName; |
| 1958 } | 1958 } |
| 1959 if (operator != null) { | 1959 if (operator != null) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1990 | 1990 |
| 1991 SegmentSequenceStep.fromJson(core.Map _json) { | 1991 SegmentSequenceStep.fromJson(core.Map _json) { |
| 1992 if (_json.containsKey("matchType")) { | 1992 if (_json.containsKey("matchType")) { |
| 1993 matchType = _json["matchType"]; | 1993 matchType = _json["matchType"]; |
| 1994 } | 1994 } |
| 1995 if (_json.containsKey("orFiltersForSegment")) { | 1995 if (_json.containsKey("orFiltersForSegment")) { |
| 1996 orFiltersForSegment = _json["orFiltersForSegment"].map((value) => new OrFi
ltersForSegment.fromJson(value)).toList(); | 1996 orFiltersForSegment = _json["orFiltersForSegment"].map((value) => new OrFi
ltersForSegment.fromJson(value)).toList(); |
| 1997 } | 1997 } |
| 1998 } | 1998 } |
| 1999 | 1999 |
| 2000 core.Map toJson() { | 2000 core.Map<core.String, core.Object> toJson() { |
| 2001 var _json = new core.Map(); | 2001 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2002 if (matchType != null) { | 2002 if (matchType != null) { |
| 2003 _json["matchType"] = matchType; | 2003 _json["matchType"] = matchType; |
| 2004 } | 2004 } |
| 2005 if (orFiltersForSegment != null) { | 2005 if (orFiltersForSegment != null) { |
| 2006 _json["orFiltersForSegment"] = orFiltersForSegment.map((value) => (value).
toJson()).toList(); | 2006 _json["orFiltersForSegment"] = orFiltersForSegment.map((value) => (value).
toJson()).toList(); |
| 2007 } | 2007 } |
| 2008 return _json; | 2008 return _json; |
| 2009 } | 2009 } |
| 2010 } | 2010 } |
| 2011 | 2011 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2027 | 2027 |
| 2028 SequenceSegment.fromJson(core.Map _json) { | 2028 SequenceSegment.fromJson(core.Map _json) { |
| 2029 if (_json.containsKey("firstStepShouldMatchFirstHit")) { | 2029 if (_json.containsKey("firstStepShouldMatchFirstHit")) { |
| 2030 firstStepShouldMatchFirstHit = _json["firstStepShouldMatchFirstHit"]; | 2030 firstStepShouldMatchFirstHit = _json["firstStepShouldMatchFirstHit"]; |
| 2031 } | 2031 } |
| 2032 if (_json.containsKey("segmentSequenceSteps")) { | 2032 if (_json.containsKey("segmentSequenceSteps")) { |
| 2033 segmentSequenceSteps = _json["segmentSequenceSteps"].map((value) => new Se
gmentSequenceStep.fromJson(value)).toList(); | 2033 segmentSequenceSteps = _json["segmentSequenceSteps"].map((value) => new Se
gmentSequenceStep.fromJson(value)).toList(); |
| 2034 } | 2034 } |
| 2035 } | 2035 } |
| 2036 | 2036 |
| 2037 core.Map toJson() { | 2037 core.Map<core.String, core.Object> toJson() { |
| 2038 var _json = new core.Map(); | 2038 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2039 if (firstStepShouldMatchFirstHit != null) { | 2039 if (firstStepShouldMatchFirstHit != null) { |
| 2040 _json["firstStepShouldMatchFirstHit"] = firstStepShouldMatchFirstHit; | 2040 _json["firstStepShouldMatchFirstHit"] = firstStepShouldMatchFirstHit; |
| 2041 } | 2041 } |
| 2042 if (segmentSequenceSteps != null) { | 2042 if (segmentSequenceSteps != null) { |
| 2043 _json["segmentSequenceSteps"] = segmentSequenceSteps.map((value) => (value
).toJson()).toList(); | 2043 _json["segmentSequenceSteps"] = segmentSequenceSteps.map((value) => (value
).toJson()).toList(); |
| 2044 } | 2044 } |
| 2045 return _json; | 2045 return _json; |
| 2046 } | 2046 } |
| 2047 } | 2047 } |
| 2048 | 2048 |
| 2049 /** | 2049 /** |
| 2050 * A Simple segment conditions consist of one or more dimension/metric | 2050 * A Simple segment conditions consist of one or more dimension/metric |
| 2051 * conditions that can be combined. | 2051 * conditions that can be combined. |
| 2052 */ | 2052 */ |
| 2053 class SimpleSegment { | 2053 class SimpleSegment { |
| 2054 /** | 2054 /** |
| 2055 * A list of segment filters groups which are combined with logical `AND` | 2055 * A list of segment filters groups which are combined with logical `AND` |
| 2056 * operator. | 2056 * operator. |
| 2057 */ | 2057 */ |
| 2058 core.List<OrFiltersForSegment> orFiltersForSegment; | 2058 core.List<OrFiltersForSegment> orFiltersForSegment; |
| 2059 | 2059 |
| 2060 SimpleSegment(); | 2060 SimpleSegment(); |
| 2061 | 2061 |
| 2062 SimpleSegment.fromJson(core.Map _json) { | 2062 SimpleSegment.fromJson(core.Map _json) { |
| 2063 if (_json.containsKey("orFiltersForSegment")) { | 2063 if (_json.containsKey("orFiltersForSegment")) { |
| 2064 orFiltersForSegment = _json["orFiltersForSegment"].map((value) => new OrFi
ltersForSegment.fromJson(value)).toList(); | 2064 orFiltersForSegment = _json["orFiltersForSegment"].map((value) => new OrFi
ltersForSegment.fromJson(value)).toList(); |
| 2065 } | 2065 } |
| 2066 } | 2066 } |
| 2067 | 2067 |
| 2068 core.Map toJson() { | 2068 core.Map<core.String, core.Object> toJson() { |
| 2069 var _json = new core.Map(); | 2069 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2070 if (orFiltersForSegment != null) { | 2070 if (orFiltersForSegment != null) { |
| 2071 _json["orFiltersForSegment"] = orFiltersForSegment.map((value) => (value).
toJson()).toList(); | 2071 _json["orFiltersForSegment"] = orFiltersForSegment.map((value) => (value).
toJson()).toList(); |
| 2072 } | 2072 } |
| 2073 return _json; | 2073 return _json; |
| 2074 } | 2074 } |
| 2075 } | 2075 } |
| OLD | NEW |