Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: generated/googleapis/lib/civicinfo/v2.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/calendar/v3.dart ('k') | generated/googleapis/lib/classroom/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.civicinfo.v2; 3 library googleapis.civicinfo.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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 localJurisdiction = new AdministrationRegion.fromJson(_json["local_jurisdi ction"]); 383 localJurisdiction = new AdministrationRegion.fromJson(_json["local_jurisdi ction"]);
384 } 384 }
385 if (_json.containsKey("name")) { 385 if (_json.containsKey("name")) {
386 name = _json["name"]; 386 name = _json["name"];
387 } 387 }
388 if (_json.containsKey("sources")) { 388 if (_json.containsKey("sources")) {
389 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi st(); 389 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi st();
390 } 390 }
391 } 391 }
392 392
393 core.Map toJson() { 393 core.Map<core.String, core.Object> toJson() {
394 var _json = new core.Map(); 394 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
395 if (electionAdministrationBody != null) { 395 if (electionAdministrationBody != null) {
396 _json["electionAdministrationBody"] = (electionAdministrationBody).toJson( ); 396 _json["electionAdministrationBody"] = (electionAdministrationBody).toJson( );
397 } 397 }
398 if (id != null) { 398 if (id != null) {
399 _json["id"] = id; 399 _json["id"] = id;
400 } 400 }
401 if (localJurisdiction != null) { 401 if (localJurisdiction != null) {
402 _json["local_jurisdiction"] = (localJurisdiction).toJson(); 402 _json["local_jurisdiction"] = (localJurisdiction).toJson();
403 } 403 }
404 if (name != null) { 404 if (name != null) {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 physicalAddress = new SimpleAddressType.fromJson(_json["physicalAddress"]) ; 504 physicalAddress = new SimpleAddressType.fromJson(_json["physicalAddress"]) ;
505 } 505 }
506 if (_json.containsKey("voter_services")) { 506 if (_json.containsKey("voter_services")) {
507 voterServices = _json["voter_services"]; 507 voterServices = _json["voter_services"];
508 } 508 }
509 if (_json.containsKey("votingLocationFinderUrl")) { 509 if (_json.containsKey("votingLocationFinderUrl")) {
510 votingLocationFinderUrl = _json["votingLocationFinderUrl"]; 510 votingLocationFinderUrl = _json["votingLocationFinderUrl"];
511 } 511 }
512 } 512 }
513 513
514 core.Map toJson() { 514 core.Map<core.String, core.Object> toJson() {
515 var _json = new core.Map(); 515 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
516 if (absenteeVotingInfoUrl != null) { 516 if (absenteeVotingInfoUrl != null) {
517 _json["absenteeVotingInfoUrl"] = absenteeVotingInfoUrl; 517 _json["absenteeVotingInfoUrl"] = absenteeVotingInfoUrl;
518 } 518 }
519 if (addressLines != null) { 519 if (addressLines != null) {
520 _json["addressLines"] = addressLines; 520 _json["addressLines"] = addressLines;
521 } 521 }
522 if (ballotInfoUrl != null) { 522 if (ballotInfoUrl != null) {
523 _json["ballotInfoUrl"] = ballotInfoUrl; 523 _json["ballotInfoUrl"] = ballotInfoUrl;
524 } 524 }
525 if (correspondenceAddress != null) { 525 if (correspondenceAddress != null) {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 party = _json["party"]; 604 party = _json["party"];
605 } 605 }
606 if (_json.containsKey("phone")) { 606 if (_json.containsKey("phone")) {
607 phone = _json["phone"]; 607 phone = _json["phone"];
608 } 608 }
609 if (_json.containsKey("photoUrl")) { 609 if (_json.containsKey("photoUrl")) {
610 photoUrl = _json["photoUrl"]; 610 photoUrl = _json["photoUrl"];
611 } 611 }
612 } 612 }
613 613
614 core.Map toJson() { 614 core.Map<core.String, core.Object> toJson() {
615 var _json = new core.Map(); 615 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
616 if (candidateUrl != null) { 616 if (candidateUrl != null) {
617 _json["candidateUrl"] = candidateUrl; 617 _json["candidateUrl"] = candidateUrl;
618 } 618 }
619 if (channels != null) { 619 if (channels != null) {
620 _json["channels"] = channels.map((value) => (value).toJson()).toList(); 620 _json["channels"] = channels.map((value) => (value).toJson()).toList();
621 } 621 }
622 if (email != null) { 622 if (email != null) {
623 _json["email"] = email; 623 _json["email"] = email;
624 } 624 }
625 if (name != null) { 625 if (name != null) {
(...skipping 30 matching lines...) Expand all
656 656
657 Channel.fromJson(core.Map _json) { 657 Channel.fromJson(core.Map _json) {
658 if (_json.containsKey("id")) { 658 if (_json.containsKey("id")) {
659 id = _json["id"]; 659 id = _json["id"];
660 } 660 }
661 if (_json.containsKey("type")) { 661 if (_json.containsKey("type")) {
662 type = _json["type"]; 662 type = _json["type"];
663 } 663 }
664 } 664 }
665 665
666 core.Map toJson() { 666 core.Map<core.String, core.Object> toJson() {
667 var _json = new core.Map(); 667 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
668 if (id != null) { 668 if (id != null) {
669 _json["id"] = id; 669 _json["id"] = id;
670 } 670 }
671 if (type != null) { 671 if (type != null) {
672 _json["type"] = type; 672 _json["type"] = type;
673 } 673 }
674 return _json; 674 return _json;
675 } 675 }
676 } 676 }
677 677
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi st(); 859 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi st();
860 } 860 }
861 if (_json.containsKey("special")) { 861 if (_json.containsKey("special")) {
862 special = _json["special"]; 862 special = _json["special"];
863 } 863 }
864 if (_json.containsKey("type")) { 864 if (_json.containsKey("type")) {
865 type = _json["type"]; 865 type = _json["type"];
866 } 866 }
867 } 867 }
868 868
869 core.Map toJson() { 869 core.Map<core.String, core.Object> toJson() {
870 var _json = new core.Map(); 870 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
871 if (ballotPlacement != null) { 871 if (ballotPlacement != null) {
872 _json["ballotPlacement"] = ballotPlacement; 872 _json["ballotPlacement"] = ballotPlacement;
873 } 873 }
874 if (candidates != null) { 874 if (candidates != null) {
875 _json["candidates"] = candidates.map((value) => (value).toJson()).toList() ; 875 _json["candidates"] = candidates.map((value) => (value).toJson()).toList() ;
876 } 876 }
877 if (district != null) { 877 if (district != null) {
878 _json["district"] = (district).toJson(); 878 _json["district"] = (district).toJson();
879 } 879 }
880 if (electorateSpecifications != null) { 880 if (electorateSpecifications != null) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 core.String clientProfile; 948 core.String clientProfile;
949 949
950 ContextParams(); 950 ContextParams();
951 951
952 ContextParams.fromJson(core.Map _json) { 952 ContextParams.fromJson(core.Map _json) {
953 if (_json.containsKey("clientProfile")) { 953 if (_json.containsKey("clientProfile")) {
954 clientProfile = _json["clientProfile"]; 954 clientProfile = _json["clientProfile"];
955 } 955 }
956 } 956 }
957 957
958 core.Map toJson() { 958 core.Map<core.String, core.Object> toJson() {
959 var _json = new core.Map(); 959 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
960 if (clientProfile != null) { 960 if (clientProfile != null) {
961 _json["clientProfile"] = clientProfile; 961 _json["clientProfile"] = clientProfile;
962 } 962 }
963 return _json; 963 return _json;
964 } 964 }
965 } 965 }
966 966
967 /** A request to look up representative information for a single division. */ 967 /** A request to look up representative information for a single division. */
968 class DivisionRepresentativeInfoRequest { 968 class DivisionRepresentativeInfoRequest {
969 ContextParams contextParams; 969 ContextParams contextParams;
970 970
971 DivisionRepresentativeInfoRequest(); 971 DivisionRepresentativeInfoRequest();
972 972
973 DivisionRepresentativeInfoRequest.fromJson(core.Map _json) { 973 DivisionRepresentativeInfoRequest.fromJson(core.Map _json) {
974 if (_json.containsKey("contextParams")) { 974 if (_json.containsKey("contextParams")) {
975 contextParams = new ContextParams.fromJson(_json["contextParams"]); 975 contextParams = new ContextParams.fromJson(_json["contextParams"]);
976 } 976 }
977 } 977 }
978 978
979 core.Map toJson() { 979 core.Map<core.String, core.Object> toJson() {
980 var _json = new core.Map(); 980 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
981 if (contextParams != null) { 981 if (contextParams != null) {
982 _json["contextParams"] = (contextParams).toJson(); 982 _json["contextParams"] = (contextParams).toJson();
983 } 983 }
984 return _json; 984 return _json;
985 } 985 }
986 } 986 }
987 987
988 /** A search request for political geographies. */ 988 /** A search request for political geographies. */
989 class DivisionSearchRequest { 989 class DivisionSearchRequest {
990 ContextParams contextParams; 990 ContextParams contextParams;
991 991
992 DivisionSearchRequest(); 992 DivisionSearchRequest();
993 993
994 DivisionSearchRequest.fromJson(core.Map _json) { 994 DivisionSearchRequest.fromJson(core.Map _json) {
995 if (_json.containsKey("contextParams")) { 995 if (_json.containsKey("contextParams")) {
996 contextParams = new ContextParams.fromJson(_json["contextParams"]); 996 contextParams = new ContextParams.fromJson(_json["contextParams"]);
997 } 997 }
998 } 998 }
999 999
1000 core.Map toJson() { 1000 core.Map<core.String, core.Object> toJson() {
1001 var _json = new core.Map(); 1001 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1002 if (contextParams != null) { 1002 if (contextParams != null) {
1003 _json["contextParams"] = (contextParams).toJson(); 1003 _json["contextParams"] = (contextParams).toJson();
1004 } 1004 }
1005 return _json; 1005 return _json;
1006 } 1006 }
1007 } 1007 }
1008 1008
1009 /** The result of a division search query. */ 1009 /** The result of a division search query. */
1010 class DivisionSearchResponse { 1010 class DivisionSearchResponse {
1011 /** 1011 /**
1012 * Identifies what kind of resource this is. Value: the fixed string 1012 * Identifies what kind of resource this is. Value: the fixed string
1013 * "civicinfo#divisionSearchResponse". 1013 * "civicinfo#divisionSearchResponse".
1014 */ 1014 */
1015 core.String kind; 1015 core.String kind;
1016 core.List<DivisionSearchResult> results; 1016 core.List<DivisionSearchResult> results;
1017 1017
1018 DivisionSearchResponse(); 1018 DivisionSearchResponse();
1019 1019
1020 DivisionSearchResponse.fromJson(core.Map _json) { 1020 DivisionSearchResponse.fromJson(core.Map _json) {
1021 if (_json.containsKey("kind")) { 1021 if (_json.containsKey("kind")) {
1022 kind = _json["kind"]; 1022 kind = _json["kind"];
1023 } 1023 }
1024 if (_json.containsKey("results")) { 1024 if (_json.containsKey("results")) {
1025 results = _json["results"].map((value) => new DivisionSearchResult.fromJso n(value)).toList(); 1025 results = _json["results"].map((value) => new DivisionSearchResult.fromJso n(value)).toList();
1026 } 1026 }
1027 } 1027 }
1028 1028
1029 core.Map toJson() { 1029 core.Map<core.String, core.Object> toJson() {
1030 var _json = new core.Map(); 1030 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1031 if (kind != null) { 1031 if (kind != null) {
1032 _json["kind"] = kind; 1032 _json["kind"] = kind;
1033 } 1033 }
1034 if (results != null) { 1034 if (results != null) {
1035 _json["results"] = results.map((value) => (value).toJson()).toList(); 1035 _json["results"] = results.map((value) => (value).toJson()).toList();
1036 } 1036 }
1037 return _json; 1037 return _json;
1038 } 1038 }
1039 } 1039 }
1040 1040
(...skipping 22 matching lines...) Expand all
1063 aliases = _json["aliases"]; 1063 aliases = _json["aliases"];
1064 } 1064 }
1065 if (_json.containsKey("name")) { 1065 if (_json.containsKey("name")) {
1066 name = _json["name"]; 1066 name = _json["name"];
1067 } 1067 }
1068 if (_json.containsKey("ocdId")) { 1068 if (_json.containsKey("ocdId")) {
1069 ocdId = _json["ocdId"]; 1069 ocdId = _json["ocdId"];
1070 } 1070 }
1071 } 1071 }
1072 1072
1073 core.Map toJson() { 1073 core.Map<core.String, core.Object> toJson() {
1074 var _json = new core.Map(); 1074 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1075 if (aliases != null) { 1075 if (aliases != null) {
1076 _json["aliases"] = aliases; 1076 _json["aliases"] = aliases;
1077 } 1077 }
1078 if (name != null) { 1078 if (name != null) {
1079 _json["name"] = name; 1079 _json["name"] = name;
1080 } 1080 }
1081 if (ocdId != null) { 1081 if (ocdId != null) {
1082 _json["ocdId"] = ocdId; 1082 _json["ocdId"] = ocdId;
1083 } 1083 }
1084 return _json; 1084 return _json;
(...skipping 27 matching lines...) Expand all
1112 id = _json["id"]; 1112 id = _json["id"];
1113 } 1113 }
1114 if (_json.containsKey("name")) { 1114 if (_json.containsKey("name")) {
1115 name = _json["name"]; 1115 name = _json["name"];
1116 } 1116 }
1117 if (_json.containsKey("ocdDivisionId")) { 1117 if (_json.containsKey("ocdDivisionId")) {
1118 ocdDivisionId = _json["ocdDivisionId"]; 1118 ocdDivisionId = _json["ocdDivisionId"];
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 (electionDay != null) { 1124 if (electionDay != null) {
1125 _json["electionDay"] = electionDay; 1125 _json["electionDay"] = electionDay;
1126 } 1126 }
1127 if (id != null) { 1127 if (id != null) {
1128 _json["id"] = id; 1128 _json["id"] = id;
1129 } 1129 }
1130 if (name != null) { 1130 if (name != null) {
1131 _json["name"] = name; 1131 _json["name"] = name;
1132 } 1132 }
1133 if (ocdDivisionId != null) { 1133 if (ocdDivisionId != null) {
(...skipping 29 matching lines...) Expand all
1163 name = _json["name"]; 1163 name = _json["name"];
1164 } 1164 }
1165 if (_json.containsKey("officePhoneNumber")) { 1165 if (_json.containsKey("officePhoneNumber")) {
1166 officePhoneNumber = _json["officePhoneNumber"]; 1166 officePhoneNumber = _json["officePhoneNumber"];
1167 } 1167 }
1168 if (_json.containsKey("title")) { 1168 if (_json.containsKey("title")) {
1169 title = _json["title"]; 1169 title = _json["title"];
1170 } 1170 }
1171 } 1171 }
1172 1172
1173 core.Map toJson() { 1173 core.Map<core.String, core.Object> toJson() {
1174 var _json = new core.Map(); 1174 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1175 if (emailAddress != null) { 1175 if (emailAddress != null) {
1176 _json["emailAddress"] = emailAddress; 1176 _json["emailAddress"] = emailAddress;
1177 } 1177 }
1178 if (faxNumber != null) { 1178 if (faxNumber != null) {
1179 _json["faxNumber"] = faxNumber; 1179 _json["faxNumber"] = faxNumber;
1180 } 1180 }
1181 if (name != null) { 1181 if (name != null) {
1182 _json["name"] = name; 1182 _json["name"] = name;
1183 } 1183 }
1184 if (officePhoneNumber != null) { 1184 if (officePhoneNumber != null) {
(...skipping 10 matching lines...) Expand all
1195 ContextParams contextParams; 1195 ContextParams contextParams;
1196 1196
1197 ElectionsQueryRequest(); 1197 ElectionsQueryRequest();
1198 1198
1199 ElectionsQueryRequest.fromJson(core.Map _json) { 1199 ElectionsQueryRequest.fromJson(core.Map _json) {
1200 if (_json.containsKey("contextParams")) { 1200 if (_json.containsKey("contextParams")) {
1201 contextParams = new ContextParams.fromJson(_json["contextParams"]); 1201 contextParams = new ContextParams.fromJson(_json["contextParams"]);
1202 } 1202 }
1203 } 1203 }
1204 1204
1205 core.Map toJson() { 1205 core.Map<core.String, core.Object> toJson() {
1206 var _json = new core.Map(); 1206 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1207 if (contextParams != null) { 1207 if (contextParams != null) {
1208 _json["contextParams"] = (contextParams).toJson(); 1208 _json["contextParams"] = (contextParams).toJson();
1209 } 1209 }
1210 return _json; 1210 return _json;
1211 } 1211 }
1212 } 1212 }
1213 1213
1214 /** The list of elections available for this version of the API. */ 1214 /** The list of elections available for this version of the API. */
1215 class ElectionsQueryResponse { 1215 class ElectionsQueryResponse {
1216 /** A list of available elections */ 1216 /** A list of available elections */
1217 core.List<Election> elections; 1217 core.List<Election> elections;
1218 /** 1218 /**
1219 * Identifies what kind of resource this is. Value: the fixed string 1219 * Identifies what kind of resource this is. Value: the fixed string
1220 * "civicinfo#electionsQueryResponse". 1220 * "civicinfo#electionsQueryResponse".
1221 */ 1221 */
1222 core.String kind; 1222 core.String kind;
1223 1223
1224 ElectionsQueryResponse(); 1224 ElectionsQueryResponse();
1225 1225
1226 ElectionsQueryResponse.fromJson(core.Map _json) { 1226 ElectionsQueryResponse.fromJson(core.Map _json) {
1227 if (_json.containsKey("elections")) { 1227 if (_json.containsKey("elections")) {
1228 elections = _json["elections"].map((value) => new Election.fromJson(value) ).toList(); 1228 elections = _json["elections"].map((value) => new Election.fromJson(value) ).toList();
1229 } 1229 }
1230 if (_json.containsKey("kind")) { 1230 if (_json.containsKey("kind")) {
1231 kind = _json["kind"]; 1231 kind = _json["kind"];
1232 } 1232 }
1233 } 1233 }
1234 1234
1235 core.Map toJson() { 1235 core.Map<core.String, core.Object> toJson() {
1236 var _json = new core.Map(); 1236 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1237 if (elections != null) { 1237 if (elections != null) {
1238 _json["elections"] = elections.map((value) => (value).toJson()).toList(); 1238 _json["elections"] = elections.map((value) => (value).toJson()).toList();
1239 } 1239 }
1240 if (kind != null) { 1240 if (kind != null) {
1241 _json["kind"] = kind; 1241 _json["kind"] = kind;
1242 } 1242 }
1243 return _json; 1243 return _json;
1244 } 1244 }
1245 } 1245 }
1246 1246
(...skipping 25 matching lines...) Expand all
1272 kgForeignKey = _json["kgForeignKey"]; 1272 kgForeignKey = _json["kgForeignKey"];
1273 } 1273 }
1274 if (_json.containsKey("name")) { 1274 if (_json.containsKey("name")) {
1275 name = _json["name"]; 1275 name = _json["name"];
1276 } 1276 }
1277 if (_json.containsKey("scope")) { 1277 if (_json.containsKey("scope")) {
1278 scope = _json["scope"]; 1278 scope = _json["scope"];
1279 } 1279 }
1280 } 1280 }
1281 1281
1282 core.Map toJson() { 1282 core.Map<core.String, core.Object> toJson() {
1283 var _json = new core.Map(); 1283 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1284 if (id != null) { 1284 if (id != null) {
1285 _json["id"] = id; 1285 _json["id"] = id;
1286 } 1286 }
1287 if (kgForeignKey != null) { 1287 if (kgForeignKey != null) {
1288 _json["kgForeignKey"] = kgForeignKey; 1288 _json["kgForeignKey"] = kgForeignKey;
1289 } 1289 }
1290 if (name != null) { 1290 if (name != null) {
1291 _json["name"] = name; 1291 _json["name"] = name;
1292 } 1292 }
1293 if (scope != null) { 1293 if (scope != null) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 alsoKnownAs = _json["alsoKnownAs"]; 1330 alsoKnownAs = _json["alsoKnownAs"];
1331 } 1331 }
1332 if (_json.containsKey("name")) { 1332 if (_json.containsKey("name")) {
1333 name = _json["name"]; 1333 name = _json["name"];
1334 } 1334 }
1335 if (_json.containsKey("officeIndices")) { 1335 if (_json.containsKey("officeIndices")) {
1336 officeIndices = _json["officeIndices"]; 1336 officeIndices = _json["officeIndices"];
1337 } 1337 }
1338 } 1338 }
1339 1339
1340 core.Map toJson() { 1340 core.Map<core.String, core.Object> toJson() {
1341 var _json = new core.Map(); 1341 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1342 if (alsoKnownAs != null) { 1342 if (alsoKnownAs != null) {
1343 _json["alsoKnownAs"] = alsoKnownAs; 1343 _json["alsoKnownAs"] = alsoKnownAs;
1344 } 1344 }
1345 if (name != null) { 1345 if (name != null) {
1346 _json["name"] = name; 1346 _json["name"] = name;
1347 } 1347 }
1348 if (officeIndices != null) { 1348 if (officeIndices != null) {
1349 _json["officeIndices"] = officeIndices; 1349 _json["officeIndices"] = officeIndices;
1350 } 1350 }
1351 return _json; 1351 return _json;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 officialIndices = _json["officialIndices"]; 1400 officialIndices = _json["officialIndices"];
1401 } 1401 }
1402 if (_json.containsKey("roles")) { 1402 if (_json.containsKey("roles")) {
1403 roles = _json["roles"]; 1403 roles = _json["roles"];
1404 } 1404 }
1405 if (_json.containsKey("sources")) { 1405 if (_json.containsKey("sources")) {
1406 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi st(); 1406 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi st();
1407 } 1407 }
1408 } 1408 }
1409 1409
1410 core.Map toJson() { 1410 core.Map<core.String, core.Object> toJson() {
1411 var _json = new core.Map(); 1411 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1412 if (divisionId != null) { 1412 if (divisionId != null) {
1413 _json["divisionId"] = divisionId; 1413 _json["divisionId"] = divisionId;
1414 } 1414 }
1415 if (levels != null) { 1415 if (levels != null) {
1416 _json["levels"] = levels; 1416 _json["levels"] = levels;
1417 } 1417 }
1418 if (name != null) { 1418 if (name != null) {
1419 _json["name"] = name; 1419 _json["name"] = name;
1420 } 1420 }
1421 if (officialIndices != null) { 1421 if (officialIndices != null) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 phones = _json["phones"]; 1472 phones = _json["phones"];
1473 } 1473 }
1474 if (_json.containsKey("photoUrl")) { 1474 if (_json.containsKey("photoUrl")) {
1475 photoUrl = _json["photoUrl"]; 1475 photoUrl = _json["photoUrl"];
1476 } 1476 }
1477 if (_json.containsKey("urls")) { 1477 if (_json.containsKey("urls")) {
1478 urls = _json["urls"]; 1478 urls = _json["urls"];
1479 } 1479 }
1480 } 1480 }
1481 1481
1482 core.Map toJson() { 1482 core.Map<core.String, core.Object> toJson() {
1483 var _json = new core.Map(); 1483 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1484 if (address != null) { 1484 if (address != null) {
1485 _json["address"] = address.map((value) => (value).toJson()).toList(); 1485 _json["address"] = address.map((value) => (value).toJson()).toList();
1486 } 1486 }
1487 if (channels != null) { 1487 if (channels != null) {
1488 _json["channels"] = channels.map((value) => (value).toJson()).toList(); 1488 _json["channels"] = channels.map((value) => (value).toJson()).toList();
1489 } 1489 }
1490 if (emails != null) { 1490 if (emails != null) {
1491 _json["emails"] = emails; 1491 _json["emails"] = emails;
1492 } 1492 }
1493 if (name != null) { 1493 if (name != null) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi st(); 1579 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi st();
1580 } 1580 }
1581 if (_json.containsKey("startDate")) { 1581 if (_json.containsKey("startDate")) {
1582 startDate = _json["startDate"]; 1582 startDate = _json["startDate"];
1583 } 1583 }
1584 if (_json.containsKey("voterServices")) { 1584 if (_json.containsKey("voterServices")) {
1585 voterServices = _json["voterServices"]; 1585 voterServices = _json["voterServices"];
1586 } 1586 }
1587 } 1587 }
1588 1588
1589 core.Map toJson() { 1589 core.Map<core.String, core.Object> toJson() {
1590 var _json = new core.Map(); 1590 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1591 if (address != null) { 1591 if (address != null) {
1592 _json["address"] = (address).toJson(); 1592 _json["address"] = (address).toJson();
1593 } 1593 }
1594 if (endDate != null) { 1594 if (endDate != null) {
1595 _json["endDate"] = endDate; 1595 _json["endDate"] = endDate;
1596 } 1596 }
1597 if (id != null) { 1597 if (id != null) {
1598 _json["id"] = id; 1598 _json["id"] = id;
1599 } 1599 }
1600 if (name != null) { 1600 if (name != null) {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 thoroughfarePostDirection = _json["thoroughfarePostDirection"]; 1743 thoroughfarePostDirection = _json["thoroughfarePostDirection"];
1744 } 1744 }
1745 if (_json.containsKey("thoroughfarePreDirection")) { 1745 if (_json.containsKey("thoroughfarePreDirection")) {
1746 thoroughfarePreDirection = _json["thoroughfarePreDirection"]; 1746 thoroughfarePreDirection = _json["thoroughfarePreDirection"];
1747 } 1747 }
1748 if (_json.containsKey("thoroughfareTrailingType")) { 1748 if (_json.containsKey("thoroughfareTrailingType")) {
1749 thoroughfareTrailingType = _json["thoroughfareTrailingType"]; 1749 thoroughfareTrailingType = _json["thoroughfareTrailingType"];
1750 } 1750 }
1751 } 1751 }
1752 1752
1753 core.Map toJson() { 1753 core.Map<core.String, core.Object> toJson() {
1754 var _json = new core.Map(); 1754 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1755 if (addressLines != null) { 1755 if (addressLines != null) {
1756 _json["addressLines"] = addressLines; 1756 _json["addressLines"] = addressLines;
1757 } 1757 }
1758 if (administrativeAreaName != null) { 1758 if (administrativeAreaName != null) {
1759 _json["administrativeAreaName"] = administrativeAreaName; 1759 _json["administrativeAreaName"] = administrativeAreaName;
1760 } 1760 }
1761 if (countryName != null) { 1761 if (countryName != null) {
1762 _json["countryName"] = countryName; 1762 _json["countryName"] = countryName;
1763 } 1763 }
1764 if (countryNameCode != null) { 1764 if (countryNameCode != null) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1860 /** 1860 /**
1861 * Officials holding the offices listed above. Will only be present if 1861 * Officials holding the offices listed above. Will only be present if
1862 * includeOffices was true in the request. 1862 * includeOffices was true in the request.
1863 */ 1863 */
1864 core.List<Official> officials; 1864 core.List<Official> officials;
1865 1865
1866 RepresentativeInfoData(); 1866 RepresentativeInfoData();
1867 1867
1868 RepresentativeInfoData.fromJson(core.Map _json) { 1868 RepresentativeInfoData.fromJson(core.Map _json) {
1869 if (_json.containsKey("divisions")) { 1869 if (_json.containsKey("divisions")) {
1870 divisions = commons.mapMap(_json["divisions"], (item) => new GeographicDiv ision.fromJson(item)); 1870 divisions = commons.mapMap<core.Map<core.String, core.Object>, GeographicD ivision>(_json["divisions"], (core.Map<core.String, core.Object> item) => new Ge ographicDivision.fromJson(item));
1871 } 1871 }
1872 if (_json.containsKey("offices")) { 1872 if (_json.containsKey("offices")) {
1873 offices = _json["offices"].map((value) => new Office.fromJson(value)).toLi st(); 1873 offices = _json["offices"].map((value) => new Office.fromJson(value)).toLi st();
1874 } 1874 }
1875 if (_json.containsKey("officials")) { 1875 if (_json.containsKey("officials")) {
1876 officials = _json["officials"].map((value) => new Official.fromJson(value) ).toList(); 1876 officials = _json["officials"].map((value) => new Official.fromJson(value) ).toList();
1877 } 1877 }
1878 } 1878 }
1879 1879
1880 core.Map toJson() { 1880 core.Map<core.String, core.Object> toJson() {
1881 var _json = new core.Map(); 1881 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1882 if (divisions != null) { 1882 if (divisions != null) {
1883 _json["divisions"] = commons.mapMap(divisions, (item) => (item).toJson()); 1883 _json["divisions"] = commons.mapMap<GeographicDivision, core.Map<core.Stri ng, core.Object>>(divisions, (GeographicDivision item) => (item).toJson());
1884 } 1884 }
1885 if (offices != null) { 1885 if (offices != null) {
1886 _json["offices"] = offices.map((value) => (value).toJson()).toList(); 1886 _json["offices"] = offices.map((value) => (value).toJson()).toList();
1887 } 1887 }
1888 if (officials != null) { 1888 if (officials != null) {
1889 _json["officials"] = officials.map((value) => (value).toJson()).toList(); 1889 _json["officials"] = officials.map((value) => (value).toJson()).toList();
1890 } 1890 }
1891 return _json; 1891 return _json;
1892 } 1892 }
1893 } 1893 }
1894 1894
1895 /** 1895 /**
1896 * A request for political geography and representative information for an 1896 * A request for political geography and representative information for an
1897 * address. 1897 * address.
1898 */ 1898 */
1899 class RepresentativeInfoRequest { 1899 class RepresentativeInfoRequest {
1900 ContextParams contextParams; 1900 ContextParams contextParams;
1901 1901
1902 RepresentativeInfoRequest(); 1902 RepresentativeInfoRequest();
1903 1903
1904 RepresentativeInfoRequest.fromJson(core.Map _json) { 1904 RepresentativeInfoRequest.fromJson(core.Map _json) {
1905 if (_json.containsKey("contextParams")) { 1905 if (_json.containsKey("contextParams")) {
1906 contextParams = new ContextParams.fromJson(_json["contextParams"]); 1906 contextParams = new ContextParams.fromJson(_json["contextParams"]);
1907 } 1907 }
1908 } 1908 }
1909 1909
1910 core.Map toJson() { 1910 core.Map<core.String, core.Object> toJson() {
1911 var _json = new core.Map(); 1911 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1912 if (contextParams != null) { 1912 if (contextParams != null) {
1913 _json["contextParams"] = (contextParams).toJson(); 1913 _json["contextParams"] = (contextParams).toJson();
1914 } 1914 }
1915 return _json; 1915 return _json;
1916 } 1916 }
1917 } 1917 }
1918 1918
1919 /** The result of a representative info lookup query. */ 1919 /** The result of a representative info lookup query. */
1920 class RepresentativeInfoResponse { 1920 class RepresentativeInfoResponse {
1921 /** Political geographic divisions that contain the requested address. */ 1921 /** Political geographic divisions that contain the requested address. */
(...skipping 13 matching lines...) Expand all
1935 /** 1935 /**
1936 * Officials holding the offices listed above. Will only be present if 1936 * Officials holding the offices listed above. Will only be present if
1937 * includeOffices was true in the request. 1937 * includeOffices was true in the request.
1938 */ 1938 */
1939 core.List<Official> officials; 1939 core.List<Official> officials;
1940 1940
1941 RepresentativeInfoResponse(); 1941 RepresentativeInfoResponse();
1942 1942
1943 RepresentativeInfoResponse.fromJson(core.Map _json) { 1943 RepresentativeInfoResponse.fromJson(core.Map _json) {
1944 if (_json.containsKey("divisions")) { 1944 if (_json.containsKey("divisions")) {
1945 divisions = commons.mapMap(_json["divisions"], (item) => new GeographicDiv ision.fromJson(item)); 1945 divisions = commons.mapMap<core.Map<core.String, core.Object>, GeographicD ivision>(_json["divisions"], (core.Map<core.String, core.Object> item) => new Ge ographicDivision.fromJson(item));
1946 } 1946 }
1947 if (_json.containsKey("kind")) { 1947 if (_json.containsKey("kind")) {
1948 kind = _json["kind"]; 1948 kind = _json["kind"];
1949 } 1949 }
1950 if (_json.containsKey("normalizedInput")) { 1950 if (_json.containsKey("normalizedInput")) {
1951 normalizedInput = new SimpleAddressType.fromJson(_json["normalizedInput"]) ; 1951 normalizedInput = new SimpleAddressType.fromJson(_json["normalizedInput"]) ;
1952 } 1952 }
1953 if (_json.containsKey("offices")) { 1953 if (_json.containsKey("offices")) {
1954 offices = _json["offices"].map((value) => new Office.fromJson(value)).toLi st(); 1954 offices = _json["offices"].map((value) => new Office.fromJson(value)).toLi st();
1955 } 1955 }
1956 if (_json.containsKey("officials")) { 1956 if (_json.containsKey("officials")) {
1957 officials = _json["officials"].map((value) => new Official.fromJson(value) ).toList(); 1957 officials = _json["officials"].map((value) => new Official.fromJson(value) ).toList();
1958 } 1958 }
1959 } 1959 }
1960 1960
1961 core.Map toJson() { 1961 core.Map<core.String, core.Object> toJson() {
1962 var _json = new core.Map(); 1962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1963 if (divisions != null) { 1963 if (divisions != null) {
1964 _json["divisions"] = commons.mapMap(divisions, (item) => (item).toJson()); 1964 _json["divisions"] = commons.mapMap<GeographicDivision, core.Map<core.Stri ng, core.Object>>(divisions, (GeographicDivision item) => (item).toJson());
1965 } 1965 }
1966 if (kind != null) { 1966 if (kind != null) {
1967 _json["kind"] = kind; 1967 _json["kind"] = kind;
1968 } 1968 }
1969 if (normalizedInput != null) { 1969 if (normalizedInput != null) {
1970 _json["normalizedInput"] = (normalizedInput).toJson(); 1970 _json["normalizedInput"] = (normalizedInput).toJson();
1971 } 1971 }
1972 if (offices != null) { 1972 if (offices != null) {
1973 _json["offices"] = offices.map((value) => (value).toJson()).toList(); 1973 _json["offices"] = offices.map((value) => (value).toJson()).toList();
1974 } 1974 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2015 locationName = _json["locationName"]; 2015 locationName = _json["locationName"];
2016 } 2016 }
2017 if (_json.containsKey("state")) { 2017 if (_json.containsKey("state")) {
2018 state = _json["state"]; 2018 state = _json["state"];
2019 } 2019 }
2020 if (_json.containsKey("zip")) { 2020 if (_json.containsKey("zip")) {
2021 zip = _json["zip"]; 2021 zip = _json["zip"];
2022 } 2022 }
2023 } 2023 }
2024 2024
2025 core.Map toJson() { 2025 core.Map<core.String, core.Object> toJson() {
2026 var _json = new core.Map(); 2026 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2027 if (city != null) { 2027 if (city != null) {
2028 _json["city"] = city; 2028 _json["city"] = city;
2029 } 2029 }
2030 if (line1 != null) { 2030 if (line1 != null) {
2031 _json["line1"] = line1; 2031 _json["line1"] = line1;
2032 } 2032 }
2033 if (line2 != null) { 2033 if (line2 != null) {
2034 _json["line2"] = line2; 2034 _json["line2"] = line2;
2035 } 2035 }
2036 if (line3 != null) { 2036 if (line3 != null) {
(...skipping 25 matching lines...) Expand all
2062 2062
2063 Source.fromJson(core.Map _json) { 2063 Source.fromJson(core.Map _json) {
2064 if (_json.containsKey("name")) { 2064 if (_json.containsKey("name")) {
2065 name = _json["name"]; 2065 name = _json["name"];
2066 } 2066 }
2067 if (_json.containsKey("official")) { 2067 if (_json.containsKey("official")) {
2068 official = _json["official"]; 2068 official = _json["official"];
2069 } 2069 }
2070 } 2070 }
2071 2071
2072 core.Map toJson() { 2072 core.Map<core.String, core.Object> toJson() {
2073 var _json = new core.Map(); 2073 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2074 if (name != null) { 2074 if (name != null) {
2075 _json["name"] = name; 2075 _json["name"] = name;
2076 } 2076 }
2077 if (official != null) { 2077 if (official != null) {
2078 _json["official"] = official; 2078 _json["official"] = official;
2079 } 2079 }
2080 return _json; 2080 return _json;
2081 } 2081 }
2082 } 2082 }
2083 2083
2084 /** A request for information about a voter. */ 2084 /** A request for information about a voter. */
2085 class VoterInfoRequest { 2085 class VoterInfoRequest {
2086 ContextParams contextParams; 2086 ContextParams contextParams;
2087 VoterInfoSegmentResult voterInfoSegmentResult; 2087 VoterInfoSegmentResult voterInfoSegmentResult;
2088 2088
2089 VoterInfoRequest(); 2089 VoterInfoRequest();
2090 2090
2091 VoterInfoRequest.fromJson(core.Map _json) { 2091 VoterInfoRequest.fromJson(core.Map _json) {
2092 if (_json.containsKey("contextParams")) { 2092 if (_json.containsKey("contextParams")) {
2093 contextParams = new ContextParams.fromJson(_json["contextParams"]); 2093 contextParams = new ContextParams.fromJson(_json["contextParams"]);
2094 } 2094 }
2095 if (_json.containsKey("voterInfoSegmentResult")) { 2095 if (_json.containsKey("voterInfoSegmentResult")) {
2096 voterInfoSegmentResult = new VoterInfoSegmentResult.fromJson(_json["voterI nfoSegmentResult"]); 2096 voterInfoSegmentResult = new VoterInfoSegmentResult.fromJson(_json["voterI nfoSegmentResult"]);
2097 } 2097 }
2098 } 2098 }
2099 2099
2100 core.Map toJson() { 2100 core.Map<core.String, core.Object> toJson() {
2101 var _json = new core.Map(); 2101 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2102 if (contextParams != null) { 2102 if (contextParams != null) {
2103 _json["contextParams"] = (contextParams).toJson(); 2103 _json["contextParams"] = (contextParams).toJson();
2104 } 2104 }
2105 if (voterInfoSegmentResult != null) { 2105 if (voterInfoSegmentResult != null) {
2106 _json["voterInfoSegmentResult"] = (voterInfoSegmentResult).toJson(); 2106 _json["voterInfoSegmentResult"] = (voterInfoSegmentResult).toJson();
2107 } 2107 }
2108 return _json; 2108 return _json;
2109 } 2109 }
2110 } 2110 }
2111 2111
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
2185 pollingLocations = _json["pollingLocations"].map((value) => new PollingLoc ation.fromJson(value)).toList(); 2185 pollingLocations = _json["pollingLocations"].map((value) => new PollingLoc ation.fromJson(value)).toList();
2186 } 2186 }
2187 if (_json.containsKey("precinctId")) { 2187 if (_json.containsKey("precinctId")) {
2188 precinctId = _json["precinctId"]; 2188 precinctId = _json["precinctId"];
2189 } 2189 }
2190 if (_json.containsKey("state")) { 2190 if (_json.containsKey("state")) {
2191 state = _json["state"].map((value) => new AdministrationRegion.fromJson(va lue)).toList(); 2191 state = _json["state"].map((value) => new AdministrationRegion.fromJson(va lue)).toList();
2192 } 2192 }
2193 } 2193 }
2194 2194
2195 core.Map toJson() { 2195 core.Map<core.String, core.Object> toJson() {
2196 var _json = new core.Map(); 2196 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2197 if (contests != null) { 2197 if (contests != null) {
2198 _json["contests"] = contests.map((value) => (value).toJson()).toList(); 2198 _json["contests"] = contests.map((value) => (value).toJson()).toList();
2199 } 2199 }
2200 if (dropOffLocations != null) { 2200 if (dropOffLocations != null) {
2201 _json["dropOffLocations"] = dropOffLocations.map((value) => (value).toJson ()).toList(); 2201 _json["dropOffLocations"] = dropOffLocations.map((value) => (value).toJson ()).toList();
2202 } 2202 }
2203 if (earlyVoteSites != null) { 2203 if (earlyVoteSites != null) {
2204 _json["earlyVoteSites"] = earlyVoteSites.map((value) => (value).toJson()). toList(); 2204 _json["earlyVoteSites"] = earlyVoteSites.map((value) => (value).toJson()). toList();
2205 } 2205 }
2206 if (election != null) { 2206 if (election != null) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 postalAddress = new PostalAddress.fromJson(_json["postalAddress"]); 2247 postalAddress = new PostalAddress.fromJson(_json["postalAddress"]);
2248 } 2248 }
2249 if (_json.containsKey("request")) { 2249 if (_json.containsKey("request")) {
2250 request = new VoterInfoRequest.fromJson(_json["request"]); 2250 request = new VoterInfoRequest.fromJson(_json["request"]);
2251 } 2251 }
2252 if (_json.containsKey("response")) { 2252 if (_json.containsKey("response")) {
2253 response = new VoterInfoResponse.fromJson(_json["response"]); 2253 response = new VoterInfoResponse.fromJson(_json["response"]);
2254 } 2254 }
2255 } 2255 }
2256 2256
2257 core.Map toJson() { 2257 core.Map<core.String, core.Object> toJson() {
2258 var _json = new core.Map(); 2258 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2259 if (generatedMillis != null) { 2259 if (generatedMillis != null) {
2260 _json["generatedMillis"] = generatedMillis; 2260 _json["generatedMillis"] = generatedMillis;
2261 } 2261 }
2262 if (postalAddress != null) { 2262 if (postalAddress != null) {
2263 _json["postalAddress"] = (postalAddress).toJson(); 2263 _json["postalAddress"] = (postalAddress).toJson();
2264 } 2264 }
2265 if (request != null) { 2265 if (request != null) {
2266 _json["request"] = (request).toJson(); 2266 _json["request"] = (request).toJson();
2267 } 2267 }
2268 if (response != null) { 2268 if (response != null) {
2269 _json["response"] = (response).toJson(); 2269 _json["response"] = (response).toJson();
2270 } 2270 }
2271 return _json; 2271 return _json;
2272 } 2272 }
2273 } 2273 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/calendar/v3.dart ('k') | generated/googleapis/lib/classroom/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698