| 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.surveys.v2; | 3 library googleapis.surveys.v2; |
| 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 | 566 |
| 567 FieldMask.fromJson(core.Map _json) { | 567 FieldMask.fromJson(core.Map _json) { |
| 568 if (_json.containsKey("fields")) { | 568 if (_json.containsKey("fields")) { |
| 569 fields = _json["fields"].map((value) => new FieldMask.fromJson(value)).toL
ist(); | 569 fields = _json["fields"].map((value) => new FieldMask.fromJson(value)).toL
ist(); |
| 570 } | 570 } |
| 571 if (_json.containsKey("id")) { | 571 if (_json.containsKey("id")) { |
| 572 id = _json["id"]; | 572 id = _json["id"]; |
| 573 } | 573 } |
| 574 } | 574 } |
| 575 | 575 |
| 576 core.Map toJson() { | 576 core.Map<core.String, core.Object> toJson() { |
| 577 var _json = new core.Map(); | 577 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 578 if (fields != null) { | 578 if (fields != null) { |
| 579 _json["fields"] = fields.map((value) => (value).toJson()).toList(); | 579 _json["fields"] = fields.map((value) => (value).toJson()).toList(); |
| 580 } | 580 } |
| 581 if (id != null) { | 581 if (id != null) { |
| 582 _json["id"] = id; | 582 _json["id"] = id; |
| 583 } | 583 } |
| 584 return _json; | 584 return _json; |
| 585 } | 585 } |
| 586 } | 586 } |
| 587 | 587 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 mobileAppPanelId = _json["mobileAppPanelId"]; | 635 mobileAppPanelId = _json["mobileAppPanelId"]; |
| 636 } | 636 } |
| 637 if (_json.containsKey("name")) { | 637 if (_json.containsKey("name")) { |
| 638 name = _json["name"]; | 638 name = _json["name"]; |
| 639 } | 639 } |
| 640 if (_json.containsKey("owners")) { | 640 if (_json.containsKey("owners")) { |
| 641 owners = _json["owners"]; | 641 owners = _json["owners"]; |
| 642 } | 642 } |
| 643 } | 643 } |
| 644 | 644 |
| 645 core.Map toJson() { | 645 core.Map<core.String, core.Object> toJson() { |
| 646 var _json = new core.Map(); | 646 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 647 if (country != null) { | 647 if (country != null) { |
| 648 _json["country"] = country; | 648 _json["country"] = country; |
| 649 } | 649 } |
| 650 if (isPublicPanel != null) { | 650 if (isPublicPanel != null) { |
| 651 _json["isPublicPanel"] = isPublicPanel; | 651 _json["isPublicPanel"] = isPublicPanel; |
| 652 } | 652 } |
| 653 if (language != null) { | 653 if (language != null) { |
| 654 _json["language"] = language; | 654 _json["language"] = language; |
| 655 } | 655 } |
| 656 if (mobileAppPanelId != null) { | 656 if (mobileAppPanelId != null) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 687 requestId = _json["requestId"]; | 687 requestId = _json["requestId"]; |
| 688 } | 688 } |
| 689 if (_json.containsKey("resources")) { | 689 if (_json.containsKey("resources")) { |
| 690 resources = _json["resources"].map((value) => new MobileAppPanel.fromJson(
value)).toList(); | 690 resources = _json["resources"].map((value) => new MobileAppPanel.fromJson(
value)).toList(); |
| 691 } | 691 } |
| 692 if (_json.containsKey("tokenPagination")) { | 692 if (_json.containsKey("tokenPagination")) { |
| 693 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 693 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 694 } | 694 } |
| 695 } | 695 } |
| 696 | 696 |
| 697 core.Map toJson() { | 697 core.Map<core.String, core.Object> toJson() { |
| 698 var _json = new core.Map(); | 698 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 699 if (pageInfo != null) { | 699 if (pageInfo != null) { |
| 700 _json["pageInfo"] = (pageInfo).toJson(); | 700 _json["pageInfo"] = (pageInfo).toJson(); |
| 701 } | 701 } |
| 702 if (requestId != null) { | 702 if (requestId != null) { |
| 703 _json["requestId"] = requestId; | 703 _json["requestId"] = requestId; |
| 704 } | 704 } |
| 705 if (resources != null) { | 705 if (resources != null) { |
| 706 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 706 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
| 707 } | 707 } |
| 708 if (tokenPagination != null) { | 708 if (tokenPagination != null) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 724 resultPerPage = _json["resultPerPage"]; | 724 resultPerPage = _json["resultPerPage"]; |
| 725 } | 725 } |
| 726 if (_json.containsKey("startIndex")) { | 726 if (_json.containsKey("startIndex")) { |
| 727 startIndex = _json["startIndex"]; | 727 startIndex = _json["startIndex"]; |
| 728 } | 728 } |
| 729 if (_json.containsKey("totalResults")) { | 729 if (_json.containsKey("totalResults")) { |
| 730 totalResults = _json["totalResults"]; | 730 totalResults = _json["totalResults"]; |
| 731 } | 731 } |
| 732 } | 732 } |
| 733 | 733 |
| 734 core.Map toJson() { | 734 core.Map<core.String, core.Object> toJson() { |
| 735 var _json = new core.Map(); | 735 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 736 if (resultPerPage != null) { | 736 if (resultPerPage != null) { |
| 737 _json["resultPerPage"] = resultPerPage; | 737 _json["resultPerPage"] = resultPerPage; |
| 738 } | 738 } |
| 739 if (startIndex != null) { | 739 if (startIndex != null) { |
| 740 _json["startIndex"] = startIndex; | 740 _json["startIndex"] = startIndex; |
| 741 } | 741 } |
| 742 if (totalResults != null) { | 742 if (totalResults != null) { |
| 743 _json["totalResults"] = totalResults; | 743 _json["totalResults"] = totalResults; |
| 744 } | 744 } |
| 745 return _json; | 745 return _json; |
| 746 } | 746 } |
| 747 } | 747 } |
| 748 | 748 |
| 749 class ResultsGetRequest { | 749 class ResultsGetRequest { |
| 750 ResultsMask resultMask; | 750 ResultsMask resultMask; |
| 751 | 751 |
| 752 ResultsGetRequest(); | 752 ResultsGetRequest(); |
| 753 | 753 |
| 754 ResultsGetRequest.fromJson(core.Map _json) { | 754 ResultsGetRequest.fromJson(core.Map _json) { |
| 755 if (_json.containsKey("resultMask")) { | 755 if (_json.containsKey("resultMask")) { |
| 756 resultMask = new ResultsMask.fromJson(_json["resultMask"]); | 756 resultMask = new ResultsMask.fromJson(_json["resultMask"]); |
| 757 } | 757 } |
| 758 } | 758 } |
| 759 | 759 |
| 760 core.Map toJson() { | 760 core.Map<core.String, core.Object> toJson() { |
| 761 var _json = new core.Map(); | 761 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 762 if (resultMask != null) { | 762 if (resultMask != null) { |
| 763 _json["resultMask"] = (resultMask).toJson(); | 763 _json["resultMask"] = (resultMask).toJson(); |
| 764 } | 764 } |
| 765 return _json; | 765 return _json; |
| 766 } | 766 } |
| 767 } | 767 } |
| 768 | 768 |
| 769 class ResultsMask { | 769 class ResultsMask { |
| 770 core.List<FieldMask> fields; | 770 core.List<FieldMask> fields; |
| 771 core.String projection; | 771 core.String projection; |
| 772 | 772 |
| 773 ResultsMask(); | 773 ResultsMask(); |
| 774 | 774 |
| 775 ResultsMask.fromJson(core.Map _json) { | 775 ResultsMask.fromJson(core.Map _json) { |
| 776 if (_json.containsKey("fields")) { | 776 if (_json.containsKey("fields")) { |
| 777 fields = _json["fields"].map((value) => new FieldMask.fromJson(value)).toL
ist(); | 777 fields = _json["fields"].map((value) => new FieldMask.fromJson(value)).toL
ist(); |
| 778 } | 778 } |
| 779 if (_json.containsKey("projection")) { | 779 if (_json.containsKey("projection")) { |
| 780 projection = _json["projection"]; | 780 projection = _json["projection"]; |
| 781 } | 781 } |
| 782 } | 782 } |
| 783 | 783 |
| 784 core.Map toJson() { | 784 core.Map<core.String, core.Object> toJson() { |
| 785 var _json = new core.Map(); | 785 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 786 if (fields != null) { | 786 if (fields != null) { |
| 787 _json["fields"] = fields.map((value) => (value).toJson()).toList(); | 787 _json["fields"] = fields.map((value) => (value).toJson()).toList(); |
| 788 } | 788 } |
| 789 if (projection != null) { | 789 if (projection != null) { |
| 790 _json["projection"] = projection; | 790 _json["projection"] = projection; |
| 791 } | 791 } |
| 792 return _json; | 792 return _json; |
| 793 } | 793 } |
| 794 } | 794 } |
| 795 | 795 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 surveyUrlId = _json["surveyUrlId"]; | 866 surveyUrlId = _json["surveyUrlId"]; |
| 867 } | 867 } |
| 868 if (_json.containsKey("title")) { | 868 if (_json.containsKey("title")) { |
| 869 title = _json["title"]; | 869 title = _json["title"]; |
| 870 } | 870 } |
| 871 if (_json.containsKey("wantedResponseCount")) { | 871 if (_json.containsKey("wantedResponseCount")) { |
| 872 wantedResponseCount = _json["wantedResponseCount"]; | 872 wantedResponseCount = _json["wantedResponseCount"]; |
| 873 } | 873 } |
| 874 } | 874 } |
| 875 | 875 |
| 876 core.Map toJson() { | 876 core.Map<core.String, core.Object> toJson() { |
| 877 var _json = new core.Map(); | 877 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 878 if (audience != null) { | 878 if (audience != null) { |
| 879 _json["audience"] = (audience).toJson(); | 879 _json["audience"] = (audience).toJson(); |
| 880 } | 880 } |
| 881 if (cost != null) { | 881 if (cost != null) { |
| 882 _json["cost"] = (cost).toJson(); | 882 _json["cost"] = (cost).toJson(); |
| 883 } | 883 } |
| 884 if (customerData != null) { | 884 if (customerData != null) { |
| 885 _json["customerData"] = customerData; | 885 _json["customerData"] = customerData; |
| 886 } | 886 } |
| 887 if (description != null) { | 887 if (description != null) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 languages = _json["languages"]; | 972 languages = _json["languages"]; |
| 973 } | 973 } |
| 974 if (_json.containsKey("mobileAppPanelId")) { | 974 if (_json.containsKey("mobileAppPanelId")) { |
| 975 mobileAppPanelId = _json["mobileAppPanelId"]; | 975 mobileAppPanelId = _json["mobileAppPanelId"]; |
| 976 } | 976 } |
| 977 if (_json.containsKey("populationSource")) { | 977 if (_json.containsKey("populationSource")) { |
| 978 populationSource = _json["populationSource"]; | 978 populationSource = _json["populationSource"]; |
| 979 } | 979 } |
| 980 } | 980 } |
| 981 | 981 |
| 982 core.Map toJson() { | 982 core.Map<core.String, core.Object> toJson() { |
| 983 var _json = new core.Map(); | 983 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 984 if (ages != null) { | 984 if (ages != null) { |
| 985 _json["ages"] = ages; | 985 _json["ages"] = ages; |
| 986 } | 986 } |
| 987 if (country != null) { | 987 if (country != null) { |
| 988 _json["country"] = country; | 988 _json["country"] = country; |
| 989 } | 989 } |
| 990 if (countrySubdivision != null) { | 990 if (countrySubdivision != null) { |
| 991 _json["countrySubdivision"] = countrySubdivision; | 991 _json["countrySubdivision"] = countrySubdivision; |
| 992 } | 992 } |
| 993 if (gender != null) { | 993 if (gender != null) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 currencyCode = _json["currencyCode"]; | 1050 currencyCode = _json["currencyCode"]; |
| 1051 } | 1051 } |
| 1052 if (_json.containsKey("maxCostPerResponseNanos")) { | 1052 if (_json.containsKey("maxCostPerResponseNanos")) { |
| 1053 maxCostPerResponseNanos = _json["maxCostPerResponseNanos"]; | 1053 maxCostPerResponseNanos = _json["maxCostPerResponseNanos"]; |
| 1054 } | 1054 } |
| 1055 if (_json.containsKey("nanos")) { | 1055 if (_json.containsKey("nanos")) { |
| 1056 nanos = _json["nanos"]; | 1056 nanos = _json["nanos"]; |
| 1057 } | 1057 } |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 core.Map toJson() { | 1060 core.Map<core.String, core.Object> toJson() { |
| 1061 var _json = new core.Map(); | 1061 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1062 if (costPerResponseNanos != null) { | 1062 if (costPerResponseNanos != null) { |
| 1063 _json["costPerResponseNanos"] = costPerResponseNanos; | 1063 _json["costPerResponseNanos"] = costPerResponseNanos; |
| 1064 } | 1064 } |
| 1065 if (currencyCode != null) { | 1065 if (currencyCode != null) { |
| 1066 _json["currencyCode"] = currencyCode; | 1066 _json["currencyCode"] = currencyCode; |
| 1067 } | 1067 } |
| 1068 if (maxCostPerResponseNanos != null) { | 1068 if (maxCostPerResponseNanos != null) { |
| 1069 _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; | 1069 _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; |
| 1070 } | 1070 } |
| 1071 if (nanos != null) { | 1071 if (nanos != null) { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 type = _json["type"]; | 1204 type = _json["type"]; |
| 1205 } | 1205 } |
| 1206 if (_json.containsKey("unitOfMeasurementLabel")) { | 1206 if (_json.containsKey("unitOfMeasurementLabel")) { |
| 1207 unitOfMeasurementLabel = _json["unitOfMeasurementLabel"]; | 1207 unitOfMeasurementLabel = _json["unitOfMeasurementLabel"]; |
| 1208 } | 1208 } |
| 1209 if (_json.containsKey("videoId")) { | 1209 if (_json.containsKey("videoId")) { |
| 1210 videoId = _json["videoId"]; | 1210 videoId = _json["videoId"]; |
| 1211 } | 1211 } |
| 1212 } | 1212 } |
| 1213 | 1213 |
| 1214 core.Map toJson() { | 1214 core.Map<core.String, core.Object> toJson() { |
| 1215 var _json = new core.Map(); | 1215 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1216 if (answerOrder != null) { | 1216 if (answerOrder != null) { |
| 1217 _json["answerOrder"] = answerOrder; | 1217 _json["answerOrder"] = answerOrder; |
| 1218 } | 1218 } |
| 1219 if (answers != null) { | 1219 if (answers != null) { |
| 1220 _json["answers"] = answers; | 1220 _json["answers"] = answers; |
| 1221 } | 1221 } |
| 1222 if (hasOther != null) { | 1222 if (hasOther != null) { |
| 1223 _json["hasOther"] = hasOther; | 1223 _json["hasOther"] = hasOther; |
| 1224 } | 1224 } |
| 1225 if (highValueLabel != null) { | 1225 if (highValueLabel != null) { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 altText = _json["altText"]; | 1297 altText = _json["altText"]; |
| 1298 } | 1298 } |
| 1299 if (_json.containsKey("data")) { | 1299 if (_json.containsKey("data")) { |
| 1300 data = _json["data"]; | 1300 data = _json["data"]; |
| 1301 } | 1301 } |
| 1302 if (_json.containsKey("url")) { | 1302 if (_json.containsKey("url")) { |
| 1303 url = _json["url"]; | 1303 url = _json["url"]; |
| 1304 } | 1304 } |
| 1305 } | 1305 } |
| 1306 | 1306 |
| 1307 core.Map toJson() { | 1307 core.Map<core.String, core.Object> toJson() { |
| 1308 var _json = new core.Map(); | 1308 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1309 if (altText != null) { | 1309 if (altText != null) { |
| 1310 _json["altText"] = altText; | 1310 _json["altText"] = altText; |
| 1311 } | 1311 } |
| 1312 if (data != null) { | 1312 if (data != null) { |
| 1313 _json["data"] = data; | 1313 _json["data"] = data; |
| 1314 } | 1314 } |
| 1315 if (url != null) { | 1315 if (url != null) { |
| 1316 _json["url"] = url; | 1316 _json["url"] = url; |
| 1317 } | 1317 } |
| 1318 return _json; | 1318 return _json; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1333 | 1333 |
| 1334 SurveyRejection.fromJson(core.Map _json) { | 1334 SurveyRejection.fromJson(core.Map _json) { |
| 1335 if (_json.containsKey("explanation")) { | 1335 if (_json.containsKey("explanation")) { |
| 1336 explanation = _json["explanation"]; | 1336 explanation = _json["explanation"]; |
| 1337 } | 1337 } |
| 1338 if (_json.containsKey("type")) { | 1338 if (_json.containsKey("type")) { |
| 1339 type = _json["type"]; | 1339 type = _json["type"]; |
| 1340 } | 1340 } |
| 1341 } | 1341 } |
| 1342 | 1342 |
| 1343 core.Map toJson() { | 1343 core.Map<core.String, core.Object> toJson() { |
| 1344 var _json = new core.Map(); | 1344 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1345 if (explanation != null) { | 1345 if (explanation != null) { |
| 1346 _json["explanation"] = explanation; | 1346 _json["explanation"] = explanation; |
| 1347 } | 1347 } |
| 1348 if (type != null) { | 1348 if (type != null) { |
| 1349 _json["type"] = type; | 1349 _json["type"] = type; |
| 1350 } | 1350 } |
| 1351 return _json; | 1351 return _json; |
| 1352 } | 1352 } |
| 1353 } | 1353 } |
| 1354 | 1354 |
| 1355 /** Reference to the current results for a given survey. */ | 1355 /** Reference to the current results for a given survey. */ |
| 1356 class SurveyResults { | 1356 class SurveyResults { |
| 1357 /** Human readable string describing the status of the request. */ | 1357 /** Human readable string describing the status of the request. */ |
| 1358 core.String status; | 1358 core.String status; |
| 1359 /** External survey ID as viewable by survey owners in the editor view. */ | 1359 /** External survey ID as viewable by survey owners in the editor view. */ |
| 1360 core.String surveyUrlId; | 1360 core.String surveyUrlId; |
| 1361 | 1361 |
| 1362 SurveyResults(); | 1362 SurveyResults(); |
| 1363 | 1363 |
| 1364 SurveyResults.fromJson(core.Map _json) { | 1364 SurveyResults.fromJson(core.Map _json) { |
| 1365 if (_json.containsKey("status")) { | 1365 if (_json.containsKey("status")) { |
| 1366 status = _json["status"]; | 1366 status = _json["status"]; |
| 1367 } | 1367 } |
| 1368 if (_json.containsKey("surveyUrlId")) { | 1368 if (_json.containsKey("surveyUrlId")) { |
| 1369 surveyUrlId = _json["surveyUrlId"]; | 1369 surveyUrlId = _json["surveyUrlId"]; |
| 1370 } | 1370 } |
| 1371 } | 1371 } |
| 1372 | 1372 |
| 1373 core.Map toJson() { | 1373 core.Map<core.String, core.Object> toJson() { |
| 1374 var _json = new core.Map(); | 1374 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1375 if (status != null) { | 1375 if (status != null) { |
| 1376 _json["status"] = status; | 1376 _json["status"] = status; |
| 1377 } | 1377 } |
| 1378 if (surveyUrlId != null) { | 1378 if (surveyUrlId != null) { |
| 1379 _json["surveyUrlId"] = surveyUrlId; | 1379 _json["surveyUrlId"] = surveyUrlId; |
| 1380 } | 1380 } |
| 1381 return _json; | 1381 return _json; |
| 1382 } | 1382 } |
| 1383 } | 1383 } |
| 1384 | 1384 |
| 1385 class SurveysDeleteResponse { | 1385 class SurveysDeleteResponse { |
| 1386 /** | 1386 /** |
| 1387 * Unique request ID used for logging and debugging. Please include in any | 1387 * Unique request ID used for logging and debugging. Please include in any |
| 1388 * error reporting or troubleshooting requests. | 1388 * error reporting or troubleshooting requests. |
| 1389 */ | 1389 */ |
| 1390 core.String requestId; | 1390 core.String requestId; |
| 1391 | 1391 |
| 1392 SurveysDeleteResponse(); | 1392 SurveysDeleteResponse(); |
| 1393 | 1393 |
| 1394 SurveysDeleteResponse.fromJson(core.Map _json) { | 1394 SurveysDeleteResponse.fromJson(core.Map _json) { |
| 1395 if (_json.containsKey("requestId")) { | 1395 if (_json.containsKey("requestId")) { |
| 1396 requestId = _json["requestId"]; | 1396 requestId = _json["requestId"]; |
| 1397 } | 1397 } |
| 1398 } | 1398 } |
| 1399 | 1399 |
| 1400 core.Map toJson() { | 1400 core.Map<core.String, core.Object> toJson() { |
| 1401 var _json = new core.Map(); | 1401 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1402 if (requestId != null) { | 1402 if (requestId != null) { |
| 1403 _json["requestId"] = requestId; | 1403 _json["requestId"] = requestId; |
| 1404 } | 1404 } |
| 1405 return _json; | 1405 return _json; |
| 1406 } | 1406 } |
| 1407 } | 1407 } |
| 1408 | 1408 |
| 1409 class SurveysListResponse { | 1409 class SurveysListResponse { |
| 1410 PageInfo pageInfo; | 1410 PageInfo pageInfo; |
| 1411 /** | 1411 /** |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1427 requestId = _json["requestId"]; | 1427 requestId = _json["requestId"]; |
| 1428 } | 1428 } |
| 1429 if (_json.containsKey("resources")) { | 1429 if (_json.containsKey("resources")) { |
| 1430 resources = _json["resources"].map((value) => new Survey.fromJson(value)).
toList(); | 1430 resources = _json["resources"].map((value) => new Survey.fromJson(value)).
toList(); |
| 1431 } | 1431 } |
| 1432 if (_json.containsKey("tokenPagination")) { | 1432 if (_json.containsKey("tokenPagination")) { |
| 1433 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 1433 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 1434 } | 1434 } |
| 1435 } | 1435 } |
| 1436 | 1436 |
| 1437 core.Map toJson() { | 1437 core.Map<core.String, core.Object> toJson() { |
| 1438 var _json = new core.Map(); | 1438 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1439 if (pageInfo != null) { | 1439 if (pageInfo != null) { |
| 1440 _json["pageInfo"] = (pageInfo).toJson(); | 1440 _json["pageInfo"] = (pageInfo).toJson(); |
| 1441 } | 1441 } |
| 1442 if (requestId != null) { | 1442 if (requestId != null) { |
| 1443 _json["requestId"] = requestId; | 1443 _json["requestId"] = requestId; |
| 1444 } | 1444 } |
| 1445 if (resources != null) { | 1445 if (resources != null) { |
| 1446 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 1446 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
| 1447 } | 1447 } |
| 1448 if (tokenPagination != null) { | 1448 if (tokenPagination != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1460 core.String maxCostPerResponseNanos; | 1460 core.String maxCostPerResponseNanos; |
| 1461 | 1461 |
| 1462 SurveysStartRequest(); | 1462 SurveysStartRequest(); |
| 1463 | 1463 |
| 1464 SurveysStartRequest.fromJson(core.Map _json) { | 1464 SurveysStartRequest.fromJson(core.Map _json) { |
| 1465 if (_json.containsKey("maxCostPerResponseNanos")) { | 1465 if (_json.containsKey("maxCostPerResponseNanos")) { |
| 1466 maxCostPerResponseNanos = _json["maxCostPerResponseNanos"]; | 1466 maxCostPerResponseNanos = _json["maxCostPerResponseNanos"]; |
| 1467 } | 1467 } |
| 1468 } | 1468 } |
| 1469 | 1469 |
| 1470 core.Map toJson() { | 1470 core.Map<core.String, core.Object> toJson() { |
| 1471 var _json = new core.Map(); | 1471 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1472 if (maxCostPerResponseNanos != null) { | 1472 if (maxCostPerResponseNanos != null) { |
| 1473 _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; | 1473 _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; |
| 1474 } | 1474 } |
| 1475 return _json; | 1475 return _json; |
| 1476 } | 1476 } |
| 1477 } | 1477 } |
| 1478 | 1478 |
| 1479 class SurveysStartResponse { | 1479 class SurveysStartResponse { |
| 1480 /** | 1480 /** |
| 1481 * Unique request ID used for logging and debugging. Please include in any | 1481 * Unique request ID used for logging and debugging. Please include in any |
| 1482 * error reporting or troubleshooting requests. | 1482 * error reporting or troubleshooting requests. |
| 1483 */ | 1483 */ |
| 1484 core.String requestId; | 1484 core.String requestId; |
| 1485 | 1485 |
| 1486 SurveysStartResponse(); | 1486 SurveysStartResponse(); |
| 1487 | 1487 |
| 1488 SurveysStartResponse.fromJson(core.Map _json) { | 1488 SurveysStartResponse.fromJson(core.Map _json) { |
| 1489 if (_json.containsKey("requestId")) { | 1489 if (_json.containsKey("requestId")) { |
| 1490 requestId = _json["requestId"]; | 1490 requestId = _json["requestId"]; |
| 1491 } | 1491 } |
| 1492 } | 1492 } |
| 1493 | 1493 |
| 1494 core.Map toJson() { | 1494 core.Map<core.String, core.Object> toJson() { |
| 1495 var _json = new core.Map(); | 1495 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1496 if (requestId != null) { | 1496 if (requestId != null) { |
| 1497 _json["requestId"] = requestId; | 1497 _json["requestId"] = requestId; |
| 1498 } | 1498 } |
| 1499 return _json; | 1499 return _json; |
| 1500 } | 1500 } |
| 1501 } | 1501 } |
| 1502 | 1502 |
| 1503 class SurveysStopResponse { | 1503 class SurveysStopResponse { |
| 1504 /** | 1504 /** |
| 1505 * Unique request ID used for logging and debugging. Please include in any | 1505 * Unique request ID used for logging and debugging. Please include in any |
| 1506 * error reporting or troubleshooting requests. | 1506 * error reporting or troubleshooting requests. |
| 1507 */ | 1507 */ |
| 1508 core.String requestId; | 1508 core.String requestId; |
| 1509 | 1509 |
| 1510 SurveysStopResponse(); | 1510 SurveysStopResponse(); |
| 1511 | 1511 |
| 1512 SurveysStopResponse.fromJson(core.Map _json) { | 1512 SurveysStopResponse.fromJson(core.Map _json) { |
| 1513 if (_json.containsKey("requestId")) { | 1513 if (_json.containsKey("requestId")) { |
| 1514 requestId = _json["requestId"]; | 1514 requestId = _json["requestId"]; |
| 1515 } | 1515 } |
| 1516 } | 1516 } |
| 1517 | 1517 |
| 1518 core.Map toJson() { | 1518 core.Map<core.String, core.Object> toJson() { |
| 1519 var _json = new core.Map(); | 1519 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1520 if (requestId != null) { | 1520 if (requestId != null) { |
| 1521 _json["requestId"] = requestId; | 1521 _json["requestId"] = requestId; |
| 1522 } | 1522 } |
| 1523 return _json; | 1523 return _json; |
| 1524 } | 1524 } |
| 1525 } | 1525 } |
| 1526 | 1526 |
| 1527 class TokenPagination { | 1527 class TokenPagination { |
| 1528 core.String nextPageToken; | 1528 core.String nextPageToken; |
| 1529 core.String previousPageToken; | 1529 core.String previousPageToken; |
| 1530 | 1530 |
| 1531 TokenPagination(); | 1531 TokenPagination(); |
| 1532 | 1532 |
| 1533 TokenPagination.fromJson(core.Map _json) { | 1533 TokenPagination.fromJson(core.Map _json) { |
| 1534 if (_json.containsKey("nextPageToken")) { | 1534 if (_json.containsKey("nextPageToken")) { |
| 1535 nextPageToken = _json["nextPageToken"]; | 1535 nextPageToken = _json["nextPageToken"]; |
| 1536 } | 1536 } |
| 1537 if (_json.containsKey("previousPageToken")) { | 1537 if (_json.containsKey("previousPageToken")) { |
| 1538 previousPageToken = _json["previousPageToken"]; | 1538 previousPageToken = _json["previousPageToken"]; |
| 1539 } | 1539 } |
| 1540 } | 1540 } |
| 1541 | 1541 |
| 1542 core.Map toJson() { | 1542 core.Map<core.String, core.Object> toJson() { |
| 1543 var _json = new core.Map(); | 1543 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1544 if (nextPageToken != null) { | 1544 if (nextPageToken != null) { |
| 1545 _json["nextPageToken"] = nextPageToken; | 1545 _json["nextPageToken"] = nextPageToken; |
| 1546 } | 1546 } |
| 1547 if (previousPageToken != null) { | 1547 if (previousPageToken != null) { |
| 1548 _json["previousPageToken"] = previousPageToken; | 1548 _json["previousPageToken"] = previousPageToken; |
| 1549 } | 1549 } |
| 1550 return _json; | 1550 return _json; |
| 1551 } | 1551 } |
| 1552 } | 1552 } |
| OLD | NEW |