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

Unified Diff: generated/googleapis/lib/civicinfo/v2.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/civicinfo/v2.dart
diff --git a/generated/googleapis/lib/civicinfo/v2.dart b/generated/googleapis/lib/civicinfo/v2.dart
index 13573d5df3a5b57bffecbf5186bf5c804388174c..14fee5ffa72a83ded89c954a3333cd00e84e1e2b 100644
--- a/generated/googleapis/lib/civicinfo/v2.dart
+++ b/generated/googleapis/lib/civicinfo/v2.dart
@@ -9,56 +9,54 @@ import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
import 'package:http/http.dart' as http;
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
- ApiRequestError, DetailedApiRequestError;
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
+ show ApiRequestError, DetailedApiRequestError;
const core.String USER_AGENT = 'dart-api-client civicinfo/v2';
-/**
- * Provides polling places, early vote locations, contest data, election
- * officials, and government representatives for U.S. residential addresses.
- */
+/// Provides polling places, early vote locations, contest data, election
+/// officials, and government representatives for U.S. residential addresses.
class CivicinfoApi {
-
final commons.ApiRequester _requester;
DivisionsResourceApi get divisions => new DivisionsResourceApi(_requester);
ElectionsResourceApi get elections => new ElectionsResourceApi(_requester);
- RepresentativesResourceApi get representatives => new RepresentativesResourceApi(_requester);
-
- CivicinfoApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "civicinfo/v2/"}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ RepresentativesResourceApi get representatives =>
+ new RepresentativesResourceApi(_requester);
+
+ CivicinfoApi(http.Client client,
+ {core.String rootUrl: "https://www.googleapis.com/",
+ core.String servicePath: "civicinfo/v2/"})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class DivisionsResourceApi {
final commons.ApiRequester _requester;
- DivisionsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Searches for political divisions by their natural name or OCD ID.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [query] - The search query. Queries can cover any parts of a OCD ID or a
- * human readable division name. All words given in the query are treated as
- * required patterns. In addition to that, most query operators of the Apache
- * Lucene library are supported. See
- * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html
- *
- * Completes with a [DivisionSearchResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<DivisionSearchResponse> search(DivisionSearchRequest request, {core.String query}) {
+ DivisionsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Searches for political divisions by their natural name or OCD ID.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [query] - The search query. Queries can cover any parts of a OCD ID or a
+ /// human readable division name. All words given in the query are treated as
+ /// required patterns. In addition to that, most query operators of the
+ /// Apache Lucene library are supported. See
+ /// http://lucene.apache.org/core/2_9_4/queryparsersyntax.html
+ ///
+ /// Completes with a [DivisionSearchResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<DivisionSearchResponse> search(DivisionSearchRequest request,
+ {core.String query}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -75,41 +73,36 @@ class DivisionsResourceApi {
_url = 'divisions';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new DivisionSearchResponse.fromJson(data));
}
-
}
-
class ElectionsResourceApi {
final commons.ApiRequester _requester;
- ElectionsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List of available elections to query.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * Completes with a [ElectionsQueryResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ElectionsQueryResponse> electionQuery(ElectionsQueryRequest request) {
+ ElectionsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// List of available elections to query.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// Completes with a [ElectionsQueryResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ElectionsQueryResponse> electionQuery(
+ ElectionsQueryRequest request) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -123,47 +116,48 @@ class ElectionsResourceApi {
_url = 'elections';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ElectionsQueryResponse.fromJson(data));
}
- /**
- * Looks up information relevant to a voter based on the voter's registered
- * address.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [address] - The registered address of the voter to look up.
- *
- * [electionId] - The unique ID of the election to look up. A list of election
- * IDs can be obtained at
- * https://www.googleapis.com/civicinfo/{version}/elections
- *
- * [officialOnly] - If set to true, only data from official state sources will
- * be returned.
- *
- * [returnAllAvailableData] - If set to true, the query will return the
- * success codeand include any partial information when it is unable to
- * determine a matching address or unable to determine the election for
- * electionId=0 queries.
- *
- * Completes with a [VoterInfoResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<VoterInfoResponse> voterInfoQuery(VoterInfoRequest request, core.String address, {core.String electionId, core.bool officialOnly, core.bool returnAllAvailableData}) {
+ /// Looks up information relevant to a voter based on the voter's registered
+ /// address.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [address] - The registered address of the voter to look up.
+ ///
+ /// [electionId] - The unique ID of the election to look up. A list of
+ /// election IDs can be obtained at
+ /// https://www.googleapis.com/civicinfo/{version}/elections
+ ///
+ /// [officialOnly] - If set to true, only data from official state sources
+ /// will be returned.
+ ///
+ /// [returnAllAvailableData] - If set to true, the query will return the
+ /// success codeand include any partial information when it is unable to
+ /// determine a matching address or unable to determine the election for
+ /// electionId=0 queries.
+ ///
+ /// Completes with a [VoterInfoResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<VoterInfoResponse> voterInfoQuery(
+ VoterInfoRequest request, core.String address,
+ {core.String electionId,
+ core.bool officialOnly,
+ core.bool returnAllAvailableData}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -190,57 +184,56 @@ class ElectionsResourceApi {
_url = 'voterinfo';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new VoterInfoResponse.fromJson(data));
}
-
}
-
class RepresentativesResourceApi {
final commons.ApiRequester _requester;
- RepresentativesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Looks up political geography and representative information for a single
- * address.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [address] - The address to look up. May only be specified if the field
- * ocdId is not given in the URL.
- *
- * [includeOffices] - Whether to return information about offices and
- * officials. If false, only the top-level district information will be
- * returned.
- *
- * [levels] - A list of office levels to filter by. Only offices that serve at
- * least one of these levels will be returned. Divisions that don't contain a
- * matching office will not be returned.
- *
- * [roles] - A list of office roles to filter by. Only offices fulfilling one
- * of these roles will be returned. Divisions that don't contain a matching
- * office will not be returned.
- *
- * Completes with a [RepresentativeInfoResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RepresentativeInfoResponse> representativeInfoByAddress(RepresentativeInfoRequest request, {core.String address, core.bool includeOffices, core.List<core.String> levels, core.List<core.String> roles}) {
+ RepresentativesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Looks up political geography and representative information for a single
+ /// address.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [address] - The address to look up. May only be specified if the field
+ /// ocdId is not given in the URL.
+ ///
+ /// [includeOffices] - Whether to return information about offices and
+ /// officials. If false, only the top-level district information will be
+ /// returned.
+ ///
+ /// [levels] - A list of office levels to filter by. Only offices that serve
+ /// at least one of these levels will be returned. Divisions that don't
+ /// contain a matching office will not be returned.
+ ///
+ /// [roles] - A list of office roles to filter by. Only offices fulfilling
+ /// one of these roles will be returned. Divisions that don't contain a
+ /// matching office will not be returned.
+ ///
+ /// Completes with a [RepresentativeInfoResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RepresentativeInfoResponse> representativeInfoByAddress(
+ RepresentativeInfoRequest request,
+ {core.String address,
+ core.bool includeOffices,
+ core.List<core.String> levels,
+ core.List<core.String> roles}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -266,48 +259,50 @@ class RepresentativesResourceApi {
_url = 'representatives';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new RepresentativeInfoResponse.fromJson(data));
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new RepresentativeInfoResponse.fromJson(data));
}
- /**
- * Looks up representative information for a single geographic division.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [ocdId] - The Open Civic Data division identifier of the division to look
- * up.
- *
- * [levels] - A list of office levels to filter by. Only offices that serve at
- * least one of these levels will be returned. Divisions that don't contain a
- * matching office will not be returned.
- *
- * [recursive] - If true, information about all divisions contained in the
- * division requested will be included as well. For example, if querying
- * ocd-division/country:us/district:dc, this would also return all DC's wards
- * and ANCs.
- *
- * [roles] - A list of office roles to filter by. Only offices fulfilling one
- * of these roles will be returned. Divisions that don't contain a matching
- * office will not be returned.
- *
- * Completes with a [RepresentativeInfoData].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<RepresentativeInfoData> representativeInfoByDivision(DivisionRepresentativeInfoRequest request, core.String ocdId, {core.List<core.String> levels, core.bool recursive, core.List<core.String> roles}) {
+ /// Looks up representative information for a single geographic division.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [ocdId] - The Open Civic Data division identifier of the division to look
+ /// up.
+ ///
+ /// [levels] - A list of office levels to filter by. Only offices that serve
+ /// at least one of these levels will be returned. Divisions that don't
+ /// contain a matching office will not be returned.
+ ///
+ /// [recursive] - If true, information about all divisions contained in the
+ /// division requested will be included as well. For example, if querying
+ /// ocd-division/country:us/district:dc, this would also return all DC's
+ /// wards and ANCs.
+ ///
+ /// [roles] - A list of office roles to filter by. Only offices fulfilling
+ /// one of these roles will be returned. Divisions that don't contain a
+ /// matching office will not be returned.
+ ///
+ /// Completes with a [RepresentativeInfoData].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<RepresentativeInfoData> representativeInfoByDivision(
+ DivisionRepresentativeInfoRequest request, core.String ocdId,
+ {core.List<core.String> levels,
+ core.bool recursive,
+ core.List<core.String> roles}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -333,67 +328,66 @@ class RepresentativesResourceApi {
_url = 'representatives/' + commons.Escaper.ecapeVariable('$ocdId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new RepresentativeInfoData.fromJson(data));
}
-
}
-
-
-/** Describes information about a regional election administrative area. */
+/// Describes information about a regional election administrative area.
class AdministrationRegion {
- /** The election administration body for this area. */
+ /// The election administration body for this area.
AdministrativeBody electionAdministrationBody;
- /**
- * An ID for this object. IDs may change in future requests and should not be
- * cached. Access to this field requires special access that can be requested
- * from the Request more link on the Quotas page.
- */
+
+ /// An ID for this object. IDs may change in future requests and should not
+ /// be cached. Access to this field requires special access that can be
+ /// requested from the Request more link on the Quotas page.
core.String id;
- /**
- * The city or county that provides election information for this voter. This
- * object can have the same elements as state.
- */
+
+ /// The city or county that provides election information for this voter.
+ /// This object can have the same elements as state.
AdministrationRegion localJurisdiction;
- /** The name of the jurisdiction. */
+
+ /// The name of the jurisdiction.
core.String name;
- /**
- * A list of sources for this area. If multiple sources are listed the data
- * has been aggregated from those sources.
- */
+
+ /// A list of sources for this area. If multiple sources are listed the data
+ /// has been aggregated from those sources.
core.List<Source> sources;
AdministrationRegion();
AdministrationRegion.fromJson(core.Map _json) {
if (_json.containsKey("electionAdministrationBody")) {
- electionAdministrationBody = new AdministrativeBody.fromJson(_json["electionAdministrationBody"]);
+ electionAdministrationBody =
+ new AdministrativeBody.fromJson(_json["electionAdministrationBody"]);
}
if (_json.containsKey("id")) {
id = _json["id"];
}
if (_json.containsKey("local_jurisdiction")) {
- localJurisdiction = new AdministrationRegion.fromJson(_json["local_jurisdiction"]);
+ localJurisdiction =
+ new AdministrationRegion.fromJson(_json["local_jurisdiction"]);
}
if (_json.containsKey("name")) {
name = _json["name"];
}
if (_json.containsKey("sources")) {
- sources = _json["sources"].map((value) => new Source.fromJson(value)).toList();
+ sources =
+ _json["sources"].map((value) => new Source.fromJson(value)).toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (electionAdministrationBody != null) {
- _json["electionAdministrationBody"] = (electionAdministrationBody).toJson();
+ _json["electionAdministrationBody"] =
+ (electionAdministrationBody).toJson();
}
if (id != null) {
_json["id"] = id;
@@ -411,57 +405,53 @@ class AdministrationRegion {
}
}
-/**
- * Information about an election administrative body (e.g. County Board of
- * Elections).
- */
+/// Information about an election administrative body (e.g. County Board of
+/// Elections).
class AdministrativeBody {
- /**
- * A URL provided by this administrative body for information on absentee
- * voting.
- */
+ /// A URL provided by this administrative body for information on absentee
+ /// voting.
core.String absenteeVotingInfoUrl;
core.List<core.String> addressLines;
- /**
- * A URL provided by this administrative body to give contest information to
- * the voter.
- */
+
+ /// A URL provided by this administrative body to give contest information to
+ /// the voter.
core.String ballotInfoUrl;
- /** The mailing address of this administrative body. */
+
+ /// The mailing address of this administrative body.
SimpleAddressType correspondenceAddress;
- /**
- * A URL provided by this administrative body for looking up general election
- * information.
- */
+
+ /// A URL provided by this administrative body for looking up general
+ /// election information.
core.String electionInfoUrl;
- /** The election officials for this election administrative body. */
+
+ /// The election officials for this election administrative body.
core.List<ElectionOfficial> electionOfficials;
- /**
- * A URL provided by this administrative body for confirming that the voter is
- * registered to vote.
- */
+
+ /// A URL provided by this administrative body for confirming that the voter
+ /// is registered to vote.
core.String electionRegistrationConfirmationUrl;
- /**
- * A URL provided by this administrative body for looking up how to register
- * to vote.
- */
+
+ /// A URL provided by this administrative body for looking up how to register
+ /// to vote.
core.String electionRegistrationUrl;
- /**
- * A URL provided by this administrative body describing election rules to the
- * voter.
- */
+
+ /// A URL provided by this administrative body describing election rules to
+ /// the voter.
core.String electionRulesUrl;
- /** A description of the hours of operation for this administrative body. */
+
+ /// A description of the hours of operation for this administrative body.
core.String hoursOfOperation;
- /** The name of this election administrative body. */
+
+ /// The name of this election administrative body.
core.String name;
- /** The physical address of this administrative body. */
+
+ /// The physical address of this administrative body.
SimpleAddressType physicalAddress;
- /** A description of the services this administrative body may provide. */
+
+ /// A description of the services this administrative body may provide.
core.List<core.String> voterServices;
- /**
- * A URL provided by this administrative body for looking up where to vote.
- */
+
+ /// A URL provided by this administrative body for looking up where to vote.
core.String votingLocationFinderUrl;
AdministrativeBody();
@@ -477,16 +467,20 @@ class AdministrativeBody {
ballotInfoUrl = _json["ballotInfoUrl"];
}
if (_json.containsKey("correspondenceAddress")) {
- correspondenceAddress = new SimpleAddressType.fromJson(_json["correspondenceAddress"]);
+ correspondenceAddress =
+ new SimpleAddressType.fromJson(_json["correspondenceAddress"]);
}
if (_json.containsKey("electionInfoUrl")) {
electionInfoUrl = _json["electionInfoUrl"];
}
if (_json.containsKey("electionOfficials")) {
- electionOfficials = _json["electionOfficials"].map((value) => new ElectionOfficial.fromJson(value)).toList();
+ electionOfficials = _json["electionOfficials"]
+ .map((value) => new ElectionOfficial.fromJson(value))
+ .toList();
}
if (_json.containsKey("electionRegistrationConfirmationUrl")) {
- electionRegistrationConfirmationUrl = _json["electionRegistrationConfirmationUrl"];
+ electionRegistrationConfirmationUrl =
+ _json["electionRegistrationConfirmationUrl"];
}
if (_json.containsKey("electionRegistrationUrl")) {
electionRegistrationUrl = _json["electionRegistrationUrl"];
@@ -501,7 +495,8 @@ class AdministrativeBody {
name = _json["name"];
}
if (_json.containsKey("physicalAddress")) {
- physicalAddress = new SimpleAddressType.fromJson(_json["physicalAddress"]);
+ physicalAddress =
+ new SimpleAddressType.fromJson(_json["physicalAddress"]);
}
if (_json.containsKey("voter_services")) {
voterServices = _json["voter_services"];
@@ -512,7 +507,8 @@ class AdministrativeBody {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (absenteeVotingInfoUrl != null) {
_json["absenteeVotingInfoUrl"] = absenteeVotingInfoUrl;
}
@@ -529,10 +525,12 @@ class AdministrativeBody {
_json["electionInfoUrl"] = electionInfoUrl;
}
if (electionOfficials != null) {
- _json["electionOfficials"] = electionOfficials.map((value) => (value).toJson()).toList();
+ _json["electionOfficials"] =
+ electionOfficials.map((value) => (value).toJson()).toList();
}
if (electionRegistrationConfirmationUrl != null) {
- _json["electionRegistrationConfirmationUrl"] = electionRegistrationConfirmationUrl;
+ _json["electionRegistrationConfirmationUrl"] =
+ electionRegistrationConfirmationUrl;
}
if (electionRegistrationUrl != null) {
_json["electionRegistrationUrl"] = electionRegistrationUrl;
@@ -559,27 +557,32 @@ class AdministrativeBody {
}
}
-/** Information about a candidate running for elected office. */
+/// Information about a candidate running for elected office.
class Candidate {
- /** The URL for the candidate's campaign web site. */
+ /// The URL for the candidate's campaign web site.
core.String candidateUrl;
- /** A list of known (social) media channels for this candidate. */
+
+ /// A list of known (social) media channels for this candidate.
core.List<Channel> channels;
- /** The email address for the candidate's campaign. */
+
+ /// The email address for the candidate's campaign.
core.String email;
- /**
- * The candidate's name. If this is a joint ticket it will indicate the name
- * of the candidate at the top of a ticket followed by a / and that name of
- * candidate at the bottom of the ticket. e.g. "Mitt Romney / Paul Ryan"
- */
+
+ /// The candidate's name. If this is a joint ticket it will indicate the name
+ /// of the candidate at the top of a ticket followed by a / and that name of
+ /// candidate at the bottom of the ticket. e.g. "Mitt Romney / Paul Ryan"
core.String name;
- /** The order the candidate appears on the ballot for this contest. */
+
+ /// The order the candidate appears on the ballot for this contest.
core.String orderOnBallot;
- /** The full name of the party the candidate is a member of. */
+
+ /// The full name of the party the candidate is a member of.
core.String party;
- /** The voice phone number for the candidate's campaign office. */
+
+ /// The voice phone number for the candidate's campaign office.
core.String phone;
- /** A URL for a photo of the candidate. */
+
+ /// A URL for a photo of the candidate.
core.String photoUrl;
Candidate();
@@ -589,7 +592,9 @@ class Candidate {
candidateUrl = _json["candidateUrl"];
}
if (_json.containsKey("channels")) {
- channels = _json["channels"].map((value) => new Channel.fromJson(value)).toList();
+ channels = _json["channels"]
+ .map((value) => new Channel.fromJson(value))
+ .toList();
}
if (_json.containsKey("email")) {
email = _json["email"];
@@ -612,7 +617,8 @@ class Candidate {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (candidateUrl != null) {
_json["candidateUrl"] = candidateUrl;
}
@@ -641,15 +647,14 @@ class Candidate {
}
}
-/** A social media or web channel for a candidate. */
+/// A social media or web channel for a candidate.
class Channel {
- /** The unique public identifier for the candidate's channel. */
+ /// The unique public identifier for the candidate's channel.
core.String id;
- /**
- * The type of channel. The following is a list of types of channels, but is
- * not exhaustive. More channel types may be added at a later time. One of:
- * GooglePlus, YouTube, Facebook, Twitter
- */
+
+ /// The type of channel. The following is a list of types of channels, but is
+ /// not exhaustive. More channel types may be added at a later time. One of:
+ /// GooglePlus, YouTube, Facebook, Twitter
core.String type;
Channel();
@@ -664,7 +669,8 @@ class Channel {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -675,118 +681,106 @@ class Channel {
}
}
-/** Information about a contest that appears on a voter's ballot. */
+/// Information about a contest that appears on a voter's ballot.
class Contest {
- /**
- * A number specifying the position of this contest on the voter's ballot.
- */
+ /// A number specifying the position of this contest on the voter's ballot.
core.String ballotPlacement;
- /** The candidate choices for this contest. */
+
+ /// The candidate choices for this contest.
core.List<Candidate> candidates;
- /** Information about the electoral district that this contest is in. */
+
+ /// Information about the electoral district that this contest is in.
ElectoralDistrict district;
- /**
- * A description of any additional eligibility requirements for voting in this
- * contest.
- */
+
+ /// A description of any additional eligibility requirements for voting in
+ /// this contest.
core.String electorateSpecifications;
- /**
- * An ID for this object. IDs may change in future requests and should not be
- * cached. Access to this field requires special access that can be requested
- * from the Request more link on the Quotas page.
- */
+
+ /// An ID for this object. IDs may change in future requests and should not
+ /// be cached. Access to this field requires special access that can be
+ /// requested from the Request more link on the Quotas page.
core.String id;
- /**
- * The levels of government of the office for this contest. There may be more
- * than one in cases where a jurisdiction effectively acts at two different
- * levels of government; for example, the mayor of the District of Columbia
- * acts at "locality" level, but also effectively at both
- * "administrative-area-2" and "administrative-area-1".
- */
+
+ /// The levels of government of the office for this contest. There may be
+ /// more than one in cases where a jurisdiction effectively acts at two
+ /// different levels of government; for example, the mayor of the District of
+ /// Columbia acts at "locality" level, but also effectively at both
+ /// "administrative-area-2" and "administrative-area-1".
core.List<core.String> level;
- /**
- * The number of candidates that will be elected to office in this contest.
- */
+
+ /// The number of candidates that will be elected to office in this contest.
core.String numberElected;
- /** The number of candidates that a voter may vote for in this contest. */
+
+ /// The number of candidates that a voter may vote for in this contest.
core.String numberVotingFor;
- /** The name of the office for this contest. */
+
+ /// The name of the office for this contest.
core.String office;
- /** If this is a partisan election, the name of the party it is for. */
+
+ /// If this is a partisan election, the name of the party it is for.
core.String primaryParty;
- /**
- * The set of ballot responses for the referendum. A ballot response
- * represents a line on the ballot. Common examples might include "yes" or
- * "no" for referenda. This field is only populated for contests of type
- * 'Referendum'.
- */
+
+ /// The set of ballot responses for the referendum. A ballot response
+ /// represents a line on the ballot. Common examples might include "yes" or
+ /// "no" for referenda. This field is only populated for contests of type
+ /// 'Referendum'.
core.List<core.String> referendumBallotResponses;
- /**
- * Specifies a short summary of the referendum that is typically on the ballot
- * below the title but above the text. This field is only populated for
- * contests of type 'Referendum'.
- */
+
+ /// Specifies a short summary of the referendum that is typically on the
+ /// ballot below the title but above the text. This field is only populated
+ /// for contests of type 'Referendum'.
core.String referendumBrief;
- /**
- * A statement in opposition to the referendum. It does not necessarily appear
- * on the ballot. This field is only populated for contests of type
- * 'Referendum'.
- */
+
+ /// A statement in opposition to the referendum. It does not necessarily
+ /// appear on the ballot. This field is only populated for contests of type
+ /// 'Referendum'.
core.String referendumConStatement;
- /**
- * Specifies what effect abstaining (not voting) on the proposition will have
- * (i.e. whether abstaining is considered a vote against it). This field is
- * only populated for contests of type 'Referendum'.
- */
+
+ /// Specifies what effect abstaining (not voting) on the proposition will
+ /// have (i.e. whether abstaining is considered a vote against it). This
+ /// field is only populated for contests of type 'Referendum'.
core.String referendumEffectOfAbstain;
- /**
- * The threshold of votes that the referendum needs in order to pass, e.g.
- * "two-thirds". This field is only populated for contests of type
- * 'Referendum'.
- */
+
+ /// The threshold of votes that the referendum needs in order to pass, e.g.
+ /// "two-thirds". This field is only populated for contests of type
+ /// 'Referendum'.
core.String referendumPassageThreshold;
- /**
- * A statement in favor of the referendum. It does not necessarily appear on
- * the ballot. This field is only populated for contests of type 'Referendum'.
- */
+
+ /// A statement in favor of the referendum. It does not necessarily appear on
+ /// the ballot. This field is only populated for contests of type
+ /// 'Referendum'.
core.String referendumProStatement;
- /**
- * A brief description of the referendum. This field is only populated for
- * contests of type 'Referendum'.
- */
+
+ /// A brief description of the referendum. This field is only populated for
+ /// contests of type 'Referendum'.
core.String referendumSubtitle;
- /**
- * The full text of the referendum. This field is only populated for contests
- * of type 'Referendum'.
- */
+
+ /// The full text of the referendum. This field is only populated for
+ /// contests of type 'Referendum'.
core.String referendumText;
- /**
- * The title of the referendum (e.g. 'Proposition 42'). This field is only
- * populated for contests of type 'Referendum'.
- */
+
+ /// The title of the referendum (e.g. 'Proposition 42'). This field is only
+ /// populated for contests of type 'Referendum'.
core.String referendumTitle;
- /**
- * A link to the referendum. This field is only populated for contests of type
- * 'Referendum'.
- */
+
+ /// A link to the referendum. This field is only populated for contests of
+ /// type 'Referendum'.
core.String referendumUrl;
- /** The roles which this office fulfills. */
+
+ /// The roles which this office fulfills.
core.List<core.String> roles;
- /**
- * A list of sources for this contest. If multiple sources are listed, the
- * data has been aggregated from those sources.
- */
+
+ /// A list of sources for this contest. If multiple sources are listed, the
+ /// data has been aggregated from those sources.
core.List<Source> sources;
- /**
- * "Yes" or "No" depending on whether this a contest being held outside the
- * normal election cycle.
- */
+
+ /// "Yes" or "No" depending on whether this a contest being held outside the
+ /// normal election cycle.
core.String special;
- /**
- * The type of contest. Usually this will be 'General', 'Primary', or
- * 'Run-off' for contests with candidates. For referenda this will be
- * 'Referendum'. For Retention contests this will typically be 'Retention'.
- */
+
+ /// The type of contest. Usually this will be 'General', 'Primary', or
+ /// 'Run-off' for contests with candidates. For referenda this will be
+ /// 'Referendum'. For Retention contests this will typically be 'Retention'.
core.String type;
Contest();
@@ -796,7 +790,9 @@ class Contest {
ballotPlacement = _json["ballotPlacement"];
}
if (_json.containsKey("candidates")) {
- candidates = _json["candidates"].map((value) => new Candidate.fromJson(value)).toList();
+ candidates = _json["candidates"]
+ .map((value) => new Candidate.fromJson(value))
+ .toList();
}
if (_json.containsKey("district")) {
district = new ElectoralDistrict.fromJson(_json["district"]);
@@ -856,7 +852,8 @@ class Contest {
roles = _json["roles"];
}
if (_json.containsKey("sources")) {
- sources = _json["sources"].map((value) => new Source.fromJson(value)).toList();
+ sources =
+ _json["sources"].map((value) => new Source.fromJson(value)).toList();
}
if (_json.containsKey("special")) {
special = _json["special"];
@@ -867,12 +864,14 @@ class Contest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (ballotPlacement != null) {
_json["ballotPlacement"] = ballotPlacement;
}
if (candidates != null) {
- _json["candidates"] = candidates.map((value) => (value).toJson()).toList();
+ _json["candidates"] =
+ candidates.map((value) => (value).toJson()).toList();
}
if (district != null) {
_json["district"] = (district).toJson();
@@ -956,7 +955,8 @@ class ContextParams {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (clientProfile != null) {
_json["clientProfile"] = clientProfile;
}
@@ -964,7 +964,7 @@ class ContextParams {
}
}
-/** A request to look up representative information for a single division. */
+/// A request to look up representative information for a single division.
class DivisionRepresentativeInfoRequest {
ContextParams contextParams;
@@ -977,7 +977,8 @@ class DivisionRepresentativeInfoRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (contextParams != null) {
_json["contextParams"] = (contextParams).toJson();
}
@@ -985,7 +986,7 @@ class DivisionRepresentativeInfoRequest {
}
}
-/** A search request for political geographies. */
+/// A search request for political geographies.
class DivisionSearchRequest {
ContextParams contextParams;
@@ -998,7 +999,8 @@ class DivisionSearchRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (contextParams != null) {
_json["contextParams"] = (contextParams).toJson();
}
@@ -1006,12 +1008,10 @@ class DivisionSearchRequest {
}
}
-/** The result of a division search query. */
+/// The result of a division search query.
class DivisionSearchResponse {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "civicinfo#divisionSearchResponse".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "civicinfo#divisionSearchResponse".
core.String kind;
core.List<DivisionSearchResult> results;
@@ -1022,12 +1022,15 @@ class DivisionSearchResponse {
kind = _json["kind"];
}
if (_json.containsKey("results")) {
- results = _json["results"].map((value) => new DivisionSearchResult.fromJson(value)).toList();
+ results = _json["results"]
+ .map((value) => new DivisionSearchResult.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
@@ -1038,22 +1041,21 @@ class DivisionSearchResponse {
}
}
-/**
- * Represents a political geographic division that matches the requested query.
- */
+/// Represents a political geographic division that matches the requested
+/// query.
class DivisionSearchResult {
- /**
- * Other Open Civic Data identifiers that refer to the same division -- for
- * example, those that refer to other political divisions whose boundaries are
- * defined to be coterminous with this one. For example,
- * ocd-division/country:us/state:wy will include an alias of
- * ocd-division/country:us/state:wy/cd:1, since Wyoming has only one
- * Congressional district.
- */
+ /// Other Open Civic Data identifiers that refer to the same division -- for
+ /// example, those that refer to other political divisions whose boundaries
+ /// are defined to be coterminous with this one. For example,
+ /// ocd-division/country:us/state:wy will include an alias of
+ /// ocd-division/country:us/state:wy/cd:1, since Wyoming has only one
+ /// Congressional district.
core.List<core.String> aliases;
- /** The name of the division. */
+
+ /// The name of the division.
core.String name;
- /** The unique Open Civic Data identifier for this division. */
+
+ /// The unique Open Civic Data identifier for this division.
core.String ocdId;
DivisionSearchResult();
@@ -1071,7 +1073,8 @@ class DivisionSearchResult {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (aliases != null) {
_json["aliases"] = aliases;
}
@@ -1085,21 +1088,22 @@ class DivisionSearchResult {
}
}
-/** Information about the election that was queried. */
+/// Information about the election that was queried.
class Election {
- /** Day of the election in YYYY-MM-DD format. */
+ /// Day of the election in YYYY-MM-DD format.
core.String electionDay;
- /** The unique ID of this election. */
+
+ /// The unique ID of this election.
core.String id;
- /** A displayable name for the election. */
+
+ /// A displayable name for the election.
core.String name;
- /**
- * The political division of the election. Represented as an OCD Division ID.
- * Voters within these political jurisdictions are covered by this election.
- * This is typically a state such as ocd-division/country:us/state:ca or for
- * the midterms or general election the entire US (i.e.
- * ocd-division/country:us).
- */
+
+ /// The political division of the election. Represented as an OCD Division
+ /// ID. Voters within these political jurisdictions are covered by this
+ /// election. This is typically a state such as
+ /// ocd-division/country:us/state:ca or for the midterms or general election
+ /// the entire US (i.e. ocd-division/country:us).
core.String ocdDivisionId;
Election();
@@ -1120,7 +1124,8 @@ class Election {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (electionDay != null) {
_json["electionDay"] = electionDay;
}
@@ -1137,17 +1142,21 @@ class Election {
}
}
-/** Information about individual election officials. */
+/// Information about individual election officials.
class ElectionOfficial {
- /** The email address of the election official. */
+ /// The email address of the election official.
core.String emailAddress;
- /** The fax number of the election official. */
+
+ /// The fax number of the election official.
core.String faxNumber;
- /** The full name of the election official. */
+
+ /// The full name of the election official.
core.String name;
- /** The office phone number of the election official. */
+
+ /// The office phone number of the election official.
core.String officePhoneNumber;
- /** The title of the election official. */
+
+ /// The title of the election official.
core.String title;
ElectionOfficial();
@@ -1171,7 +1180,8 @@ class ElectionOfficial {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (emailAddress != null) {
_json["emailAddress"] = emailAddress;
}
@@ -1203,7 +1213,8 @@ class ElectionsQueryRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (contextParams != null) {
_json["contextParams"] = (contextParams).toJson();
}
@@ -1211,21 +1222,22 @@ class ElectionsQueryRequest {
}
}
-/** The list of elections available for this version of the API. */
+/// The list of elections available for this version of the API.
class ElectionsQueryResponse {
- /** A list of available elections */
+ /// A list of available elections
core.List<Election> elections;
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "civicinfo#electionsQueryResponse".
- */
+
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "civicinfo#electionsQueryResponse".
core.String kind;
ElectionsQueryResponse();
ElectionsQueryResponse.fromJson(core.Map _json) {
if (_json.containsKey("elections")) {
- elections = _json["elections"].map((value) => new Election.fromJson(value)).toList();
+ elections = _json["elections"]
+ .map((value) => new Election.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -1233,7 +1245,8 @@ class ElectionsQueryResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (elections != null) {
_json["elections"] = elections.map((value) => (value).toJson()).toList();
}
@@ -1244,22 +1257,20 @@ class ElectionsQueryResponse {
}
}
-/** Describes the geographic scope of a contest. */
+/// Describes the geographic scope of a contest.
class ElectoralDistrict {
- /**
- * An identifier for this district, relative to its scope. For example, the
- * 34th State Senate district would have id "34" and a scope of stateUpper.
- */
+ /// An identifier for this district, relative to its scope. For example, the
+ /// 34th State Senate district would have id "34" and a scope of stateUpper.
core.String id;
core.String kgForeignKey;
- /** The name of the district. */
+
+ /// The name of the district.
core.String name;
- /**
- * The geographic scope of this district. If unspecified the district's
- * geography is not known. One of: national, statewide, congressional,
- * stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide,
- * township, countyCouncil, cityCouncil, ward, special
- */
+
+ /// The geographic scope of this district. If unspecified the district's
+ /// geography is not known. One of: national, statewide, congressional,
+ /// stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide,
+ /// township, countyCouncil, cityCouncil, ward, special
core.String scope;
ElectoralDistrict();
@@ -1280,7 +1291,8 @@ class ElectoralDistrict {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -1297,30 +1309,28 @@ class ElectoralDistrict {
}
}
-/** Describes a political geography. */
+/// Describes a political geography.
class GeographicDivision {
- /**
- * Any other valid OCD IDs that refer to the same division.
- *
- * Because OCD IDs are meant to be human-readable and at least somewhat
- * predictable, there are occasionally several identifiers for a single
- * division. These identifiers are defined to be equivalent to one another,
- * and one is always indicated as the primary identifier. The primary
- * identifier will be returned in ocd_id above, and any other equivalent valid
- * identifiers will be returned in this list.
- *
- * For example, if this division's OCD ID is
- * ocd-division/country:us/district:dc, this will contain
- * ocd-division/country:us/state:dc.
- */
+ /// Any other valid OCD IDs that refer to the same division.
+ ///
+ /// Because OCD IDs are meant to be human-readable and at least somewhat
+ /// predictable, there are occasionally several identifiers for a single
+ /// division. These identifiers are defined to be equivalent to one another,
+ /// and one is always indicated as the primary identifier. The primary
+ /// identifier will be returned in ocd_id above, and any other equivalent
+ /// valid identifiers will be returned in this list.
+ ///
+ /// For example, if this division's OCD ID is
+ /// ocd-division/country:us/district:dc, this will contain
+ /// ocd-division/country:us/state:dc.
core.List<core.String> alsoKnownAs;
- /** The name of the division. */
+
+ /// The name of the division.
core.String name;
- /**
- * List of indices in the offices array, one for each office elected from this
- * division. Will only be present if includeOffices was true (or absent) in
- * the request.
- */
+
+ /// List of indices in the offices array, one for each office elected from
+ /// this division. Will only be present if includeOffices was true (or
+ /// absent) in the request.
core.List<core.int> officeIndices;
GeographicDivision();
@@ -1338,7 +1348,8 @@ class GeographicDivision {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (alsoKnownAs != null) {
_json["alsoKnownAs"] = alsoKnownAs;
}
@@ -1352,36 +1363,33 @@ class GeographicDivision {
}
}
-/** Information about an Office held by one or more Officials. */
+/// Information about an Office held by one or more Officials.
class Office {
- /** The OCD ID of the division with which this office is associated. */
+ /// The OCD ID of the division with which this office is associated.
core.String divisionId;
- /**
- * The levels of government of which this office is part. There may be more
- * than one in cases where a jurisdiction effectively acts at two different
- * levels of government; for example, the mayor of the District of Columbia
- * acts at "locality" level, but also effectively at both
- * "administrative-area-2" and "administrative-area-1".
- */
+
+ /// The levels of government of which this office is part. There may be more
+ /// than one in cases where a jurisdiction effectively acts at two different
+ /// levels of government; for example, the mayor of the District of Columbia
+ /// acts at "locality" level, but also effectively at both
+ /// "administrative-area-2" and "administrative-area-1".
core.List<core.String> levels;
- /** The human-readable name of the office. */
+
+ /// The human-readable name of the office.
core.String name;
- /**
- * List of indices in the officials array of people who presently hold this
- * office.
- */
+
+ /// List of indices in the officials array of people who presently hold this
+ /// office.
core.List<core.int> officialIndices;
- /**
- * The roles which this office fulfills. Roles are not meant to be exhaustive,
- * or to exactly specify the entire set of responsibilities of a given office,
- * but are meant to be rough categories that are useful for general selection
- * from or sorting of a list of offices.
- */
+
+ /// The roles which this office fulfills. Roles are not meant to be
+ /// exhaustive, or to exactly specify the entire set of responsibilities of a
+ /// given office, but are meant to be rough categories that are useful for
+ /// general selection from or sorting of a list of offices.
core.List<core.String> roles;
- /**
- * A list of sources for this office. If multiple sources are listed, the data
- * has been aggregated from those sources.
- */
+
+ /// A list of sources for this office. If multiple sources are listed, the
+ /// data has been aggregated from those sources.
core.List<Source> sources;
Office();
@@ -1403,12 +1411,14 @@ class Office {
roles = _json["roles"];
}
if (_json.containsKey("sources")) {
- sources = _json["sources"].map((value) => new Source.fromJson(value)).toList();
+ sources =
+ _json["sources"].map((value) => new Source.fromJson(value)).toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (divisionId != null) {
_json["divisionId"] = divisionId;
}
@@ -1431,33 +1441,44 @@ class Office {
}
}
-/** Information about a person holding an elected office. */
+/// Information about a person holding an elected office.
class Official {
- /** Addresses at which to contact the official. */
+ /// Addresses at which to contact the official.
core.List<SimpleAddressType> address;
- /** A list of known (social) media channels for this official. */
+
+ /// A list of known (social) media channels for this official.
core.List<Channel> channels;
- /** The direct email addresses for the official. */
+
+ /// The direct email addresses for the official.
core.List<core.String> emails;
- /** The official's name. */
+
+ /// The official's name.
core.String name;
- /** The full name of the party the official belongs to. */
+
+ /// The full name of the party the official belongs to.
core.String party;
- /** The official's public contact phone numbers. */
+
+ /// The official's public contact phone numbers.
core.List<core.String> phones;
- /** A URL for a photo of the official. */
+
+ /// A URL for a photo of the official.
core.String photoUrl;
- /** The official's public website URLs. */
+
+ /// The official's public website URLs.
core.List<core.String> urls;
Official();
Official.fromJson(core.Map _json) {
if (_json.containsKey("address")) {
- address = _json["address"].map((value) => new SimpleAddressType.fromJson(value)).toList();
+ address = _json["address"]
+ .map((value) => new SimpleAddressType.fromJson(value))
+ .toList();
}
if (_json.containsKey("channels")) {
- channels = _json["channels"].map((value) => new Channel.fromJson(value)).toList();
+ channels = _json["channels"]
+ .map((value) => new Channel.fromJson(value))
+ .toList();
}
if (_json.containsKey("emails")) {
emails = _json["emails"];
@@ -1480,7 +1501,8 @@ class Official {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (address != null) {
_json["address"] = address.map((value) => (value).toJson()).toList();
}
@@ -1509,49 +1531,42 @@ class Official {
}
}
-/**
- * A location where a voter can vote. This may be an early vote site, an
- * election day voting location, or a drop off location for a completed ballot.
- */
+/// A location where a voter can vote. This may be an early vote site, an
+/// election day voting location, or a drop off location for a completed
+/// ballot.
class PollingLocation {
- /** The address of the location. */
+ /// The address of the location.
SimpleAddressType address;
- /**
- * The last date that this early vote site or drop off location may be used.
- * This field is not populated for polling locations.
- */
+
+ /// The last date that this early vote site or drop off location may be used.
+ /// This field is not populated for polling locations.
core.String endDate;
- /**
- * An ID for this object. IDs may change in future requests and should not be
- * cached. Access to this field requires special access that can be requested
- * from the Request more link on the Quotas page.
- */
+
+ /// An ID for this object. IDs may change in future requests and should not
+ /// be cached. Access to this field requires special access that can be
+ /// requested from the Request more link on the Quotas page.
core.String id;
- /**
- * The name of the early vote site or drop off location. This field is not
- * populated for polling locations.
- */
+
+ /// The name of the early vote site or drop off location. This field is not
+ /// populated for polling locations.
core.String name;
- /**
- * Notes about this location (e.g. accessibility ramp or entrance to use).
- */
+
+ /// Notes about this location (e.g. accessibility ramp or entrance to use).
core.String notes;
- /** A description of when this location is open. */
+
+ /// A description of when this location is open.
core.String pollingHours;
- /**
- * A list of sources for this location. If multiple sources are listed the
- * data has been aggregated from those sources.
- */
+
+ /// A list of sources for this location. If multiple sources are listed the
+ /// data has been aggregated from those sources.
core.List<Source> sources;
- /**
- * The first date that this early vote site or drop off location may be used.
- * This field is not populated for polling locations.
- */
+
+ /// The first date that this early vote site or drop off location may be
+ /// used. This field is not populated for polling locations.
core.String startDate;
- /**
- * The services provided by this early vote site or drop off location. This
- * field is not populated for polling locations.
- */
+
+ /// The services provided by this early vote site or drop off location. This
+ /// field is not populated for polling locations.
core.String voterServices;
PollingLocation();
@@ -1576,7 +1591,8 @@ class PollingLocation {
pollingHours = _json["pollingHours"];
}
if (_json.containsKey("sources")) {
- sources = _json["sources"].map((value) => new Source.fromJson(value)).toList();
+ sources =
+ _json["sources"].map((value) => new Source.fromJson(value)).toList();
}
if (_json.containsKey("startDate")) {
startDate = _json["startDate"];
@@ -1587,7 +1603,8 @@ class PollingLocation {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (address != null) {
_json["address"] = (address).toJson();
}
@@ -1671,25 +1688,31 @@ class PostalAddress {
dependentLocalityName = _json["dependentLocalityName"];
}
if (_json.containsKey("dependentThoroughfareLeadingType")) {
- dependentThoroughfareLeadingType = _json["dependentThoroughfareLeadingType"];
+ dependentThoroughfareLeadingType =
+ _json["dependentThoroughfareLeadingType"];
}
if (_json.containsKey("dependentThoroughfareName")) {
dependentThoroughfareName = _json["dependentThoroughfareName"];
}
if (_json.containsKey("dependentThoroughfarePostDirection")) {
- dependentThoroughfarePostDirection = _json["dependentThoroughfarePostDirection"];
+ dependentThoroughfarePostDirection =
+ _json["dependentThoroughfarePostDirection"];
}
if (_json.containsKey("dependentThoroughfarePreDirection")) {
- dependentThoroughfarePreDirection = _json["dependentThoroughfarePreDirection"];
+ dependentThoroughfarePreDirection =
+ _json["dependentThoroughfarePreDirection"];
}
if (_json.containsKey("dependentThoroughfareTrailingType")) {
- dependentThoroughfareTrailingType = _json["dependentThoroughfareTrailingType"];
+ dependentThoroughfareTrailingType =
+ _json["dependentThoroughfareTrailingType"];
}
if (_json.containsKey("dependentThoroughfaresConnector")) {
- dependentThoroughfaresConnector = _json["dependentThoroughfaresConnector"];
+ dependentThoroughfaresConnector =
+ _json["dependentThoroughfaresConnector"];
}
if (_json.containsKey("dependentThoroughfaresIndicator")) {
- dependentThoroughfaresIndicator = _json["dependentThoroughfaresIndicator"];
+ dependentThoroughfaresIndicator =
+ _json["dependentThoroughfaresIndicator"];
}
if (_json.containsKey("dependentThoroughfaresType")) {
dependentThoroughfaresType = _json["dependentThoroughfaresType"];
@@ -1751,7 +1774,8 @@ class PostalAddress {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (addressLines != null) {
_json["addressLines"] = addressLines;
}
@@ -1768,25 +1792,31 @@ class PostalAddress {
_json["dependentLocalityName"] = dependentLocalityName;
}
if (dependentThoroughfareLeadingType != null) {
- _json["dependentThoroughfareLeadingType"] = dependentThoroughfareLeadingType;
+ _json["dependentThoroughfareLeadingType"] =
+ dependentThoroughfareLeadingType;
}
if (dependentThoroughfareName != null) {
_json["dependentThoroughfareName"] = dependentThoroughfareName;
}
if (dependentThoroughfarePostDirection != null) {
- _json["dependentThoroughfarePostDirection"] = dependentThoroughfarePostDirection;
+ _json["dependentThoroughfarePostDirection"] =
+ dependentThoroughfarePostDirection;
}
if (dependentThoroughfarePreDirection != null) {
- _json["dependentThoroughfarePreDirection"] = dependentThoroughfarePreDirection;
+ _json["dependentThoroughfarePreDirection"] =
+ dependentThoroughfarePreDirection;
}
if (dependentThoroughfareTrailingType != null) {
- _json["dependentThoroughfareTrailingType"] = dependentThoroughfareTrailingType;
+ _json["dependentThoroughfareTrailingType"] =
+ dependentThoroughfareTrailingType;
}
if (dependentThoroughfaresConnector != null) {
- _json["dependentThoroughfaresConnector"] = dependentThoroughfaresConnector;
+ _json["dependentThoroughfaresConnector"] =
+ dependentThoroughfaresConnector;
}
if (dependentThoroughfaresIndicator != null) {
- _json["dependentThoroughfaresIndicator"] = dependentThoroughfaresIndicator;
+ _json["dependentThoroughfaresIndicator"] =
+ dependentThoroughfaresIndicator;
}
if (dependentThoroughfaresType != null) {
_json["dependentThoroughfaresType"] = dependentThoroughfaresType;
@@ -1850,37 +1880,45 @@ class PostalAddress {
}
class RepresentativeInfoData {
- /** Political geographic divisions that contain the requested address. */
+ /// Political geographic divisions that contain the requested address.
core.Map<core.String, GeographicDivision> divisions;
- /**
- * Elected offices referenced by the divisions listed above. Will only be
- * present if includeOffices was true in the request.
- */
+
+ /// Elected offices referenced by the divisions listed above. Will only be
+ /// present if includeOffices was true in the request.
core.List<Office> offices;
- /**
- * Officials holding the offices listed above. Will only be present if
- * includeOffices was true in the request.
- */
+
+ /// Officials holding the offices listed above. Will only be present if
+ /// includeOffices was true in the request.
core.List<Official> officials;
RepresentativeInfoData();
RepresentativeInfoData.fromJson(core.Map _json) {
if (_json.containsKey("divisions")) {
- divisions = commons.mapMap<core.Map<core.String, core.Object>, GeographicDivision>(_json["divisions"], (core.Map<core.String, core.Object> item) => new GeographicDivision.fromJson(item));
+ divisions = commons
+ .mapMap<core.Map<core.String, core.Object>, GeographicDivision>(
+ _json["divisions"],
+ (core.Map<core.String, core.Object> item) =>
+ new GeographicDivision.fromJson(item));
}
if (_json.containsKey("offices")) {
- offices = _json["offices"].map((value) => new Office.fromJson(value)).toList();
+ offices =
+ _json["offices"].map((value) => new Office.fromJson(value)).toList();
}
if (_json.containsKey("officials")) {
- officials = _json["officials"].map((value) => new Official.fromJson(value)).toList();
+ officials = _json["officials"]
+ .map((value) => new Official.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (divisions != null) {
- _json["divisions"] = commons.mapMap<GeographicDivision, core.Map<core.String, core.Object>>(divisions, (GeographicDivision item) => (item).toJson());
+ _json["divisions"] = commons
+ .mapMap<GeographicDivision, core.Map<core.String, core.Object>>(
+ divisions, (GeographicDivision item) => (item).toJson());
}
if (offices != null) {
_json["offices"] = offices.map((value) => (value).toJson()).toList();
@@ -1892,10 +1930,8 @@ class RepresentativeInfoData {
}
}
-/**
- * A request for political geography and representative information for an
- * address.
- */
+/// A request for political geography and representative information for an
+/// address.
class RepresentativeInfoRequest {
ContextParams contextParams;
@@ -1908,7 +1944,8 @@ class RepresentativeInfoRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (contextParams != null) {
_json["contextParams"] = (contextParams).toJson();
}
@@ -1916,52 +1953,61 @@ class RepresentativeInfoRequest {
}
}
-/** The result of a representative info lookup query. */
+/// The result of a representative info lookup query.
class RepresentativeInfoResponse {
- /** Political geographic divisions that contain the requested address. */
+ /// Political geographic divisions that contain the requested address.
core.Map<core.String, GeographicDivision> divisions;
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "civicinfo#representativeInfoResponse".
- */
+
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "civicinfo#representativeInfoResponse".
core.String kind;
- /** The normalized version of the requested address */
+
+ /// The normalized version of the requested address
SimpleAddressType normalizedInput;
- /**
- * Elected offices referenced by the divisions listed above. Will only be
- * present if includeOffices was true in the request.
- */
+
+ /// Elected offices referenced by the divisions listed above. Will only be
+ /// present if includeOffices was true in the request.
core.List<Office> offices;
- /**
- * Officials holding the offices listed above. Will only be present if
- * includeOffices was true in the request.
- */
+
+ /// Officials holding the offices listed above. Will only be present if
+ /// includeOffices was true in the request.
core.List<Official> officials;
RepresentativeInfoResponse();
RepresentativeInfoResponse.fromJson(core.Map _json) {
if (_json.containsKey("divisions")) {
- divisions = commons.mapMap<core.Map<core.String, core.Object>, GeographicDivision>(_json["divisions"], (core.Map<core.String, core.Object> item) => new GeographicDivision.fromJson(item));
+ divisions = commons
+ .mapMap<core.Map<core.String, core.Object>, GeographicDivision>(
+ _json["divisions"],
+ (core.Map<core.String, core.Object> item) =>
+ new GeographicDivision.fromJson(item));
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
}
if (_json.containsKey("normalizedInput")) {
- normalizedInput = new SimpleAddressType.fromJson(_json["normalizedInput"]);
+ normalizedInput =
+ new SimpleAddressType.fromJson(_json["normalizedInput"]);
}
if (_json.containsKey("offices")) {
- offices = _json["offices"].map((value) => new Office.fromJson(value)).toList();
+ offices =
+ _json["offices"].map((value) => new Office.fromJson(value)).toList();
}
if (_json.containsKey("officials")) {
- officials = _json["officials"].map((value) => new Official.fromJson(value)).toList();
+ officials = _json["officials"]
+ .map((value) => new Official.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (divisions != null) {
- _json["divisions"] = commons.mapMap<GeographicDivision, core.Map<core.String, core.Object>>(divisions, (GeographicDivision item) => (item).toJson());
+ _json["divisions"] = commons
+ .mapMap<GeographicDivision, core.Map<core.String, core.Object>>(
+ divisions, (GeographicDivision item) => (item).toJson());
}
if (kind != null) {
_json["kind"] = kind;
@@ -1979,21 +2025,27 @@ class RepresentativeInfoResponse {
}
}
-/** A simple representation of an address. */
+/// A simple representation of an address.
class SimpleAddressType {
- /** The city or town for the address. */
+ /// The city or town for the address.
core.String city;
- /** The street name and number of this address. */
+
+ /// The street name and number of this address.
core.String line1;
- /** The second line the address, if needed. */
+
+ /// The second line the address, if needed.
core.String line2;
- /** The third line of the address, if needed. */
+
+ /// The third line of the address, if needed.
core.String line3;
- /** The name of the location. */
+
+ /// The name of the location.
core.String locationName;
- /** The US two letter state abbreviation of the address. */
+
+ /// The US two letter state abbreviation of the address.
core.String state;
- /** The US Postal Zip Code of the address. */
+
+ /// The US Postal Zip Code of the address.
core.String zip;
SimpleAddressType();
@@ -2023,7 +2075,8 @@ class SimpleAddressType {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (city != null) {
_json["city"] = city;
}
@@ -2049,13 +2102,12 @@ class SimpleAddressType {
}
}
-/**
- * Contains information about the data source for the element containing it.
- */
+/// Contains information about the data source for the element containing it.
class Source {
- /** The name of the data source. */
+ /// The name of the data source.
core.String name;
- /** Whether this data comes from an official government source. */
+
+ /// Whether this data comes from an official government source.
core.bool official;
Source();
@@ -2070,7 +2122,8 @@ class Source {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (name != null) {
_json["name"] = name;
}
@@ -2081,7 +2134,7 @@ class Source {
}
}
-/** A request for information about a voter. */
+/// A request for information about a voter.
class VoterInfoRequest {
ContextParams contextParams;
VoterInfoSegmentResult voterInfoSegmentResult;
@@ -2093,12 +2146,14 @@ class VoterInfoRequest {
contextParams = new ContextParams.fromJson(_json["contextParams"]);
}
if (_json.containsKey("voterInfoSegmentResult")) {
- voterInfoSegmentResult = new VoterInfoSegmentResult.fromJson(_json["voterInfoSegmentResult"]);
+ voterInfoSegmentResult =
+ new VoterInfoSegmentResult.fromJson(_json["voterInfoSegmentResult"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (contextParams != null) {
_json["contextParams"] = (contextParams).toJson();
}
@@ -2109,62 +2164,66 @@ class VoterInfoRequest {
}
}
-/** The result of a voter info lookup query. */
+/// The result of a voter info lookup query.
class VoterInfoResponse {
- /** Contests that will appear on the voter's ballot. */
+ /// Contests that will appear on the voter's ballot.
core.List<Contest> contests;
- /**
- * Locations where a voter is eligible to drop off a completed ballot. The
- * voter must have received and completed a ballot prior to arriving at the
- * location. The location may not have ballots available on the premises.
- * These locations could be open on or before election day as indicated in the
- * pollingHours field.
- */
+
+ /// Locations where a voter is eligible to drop off a completed ballot. The
+ /// voter must have received and completed a ballot prior to arriving at the
+ /// location. The location may not have ballots available on the premises.
+ /// These locations could be open on or before election day as indicated in
+ /// the pollingHours field.
core.List<PollingLocation> dropOffLocations;
- /**
- * Locations where the voter is eligible to vote early, prior to election day.
- */
+
+ /// Locations where the voter is eligible to vote early, prior to election
+ /// day.
core.List<PollingLocation> earlyVoteSites;
- /** The election that was queried. */
+
+ /// The election that was queried.
Election election;
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "civicinfo#voterInfoResponse".
- */
+
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "civicinfo#voterInfoResponse".
core.String kind;
- /**
- * Specifies whether voters in the precinct vote only by mailing their ballots
- * (with the possible option of dropping off their ballots as well).
- */
+
+ /// Specifies whether voters in the precinct vote only by mailing their
+ /// ballots (with the possible option of dropping off their ballots as well).
core.bool mailOnly;
- /** The normalized version of the requested address */
+
+ /// The normalized version of the requested address
SimpleAddressType normalizedInput;
- /**
- * If no election ID was specified in the query, and there was more than one
- * election with data for the given voter, this will contain information about
- * the other elections that could apply.
- */
+
+ /// If no election ID was specified in the query, and there was more than one
+ /// election with data for the given voter, this will contain information
+ /// about the other elections that could apply.
core.List<Election> otherElections;
- /** Locations where the voter is eligible to vote on election day. */
+
+ /// Locations where the voter is eligible to vote on election day.
core.List<PollingLocation> pollingLocations;
core.String precinctId;
- /**
- * Local Election Information for the state that the voter votes in. For the
- * US, there will only be one element in this array.
- */
+
+ /// Local Election Information for the state that the voter votes in. For the
+ /// US, there will only be one element in this array.
core.List<AdministrationRegion> state;
VoterInfoResponse();
VoterInfoResponse.fromJson(core.Map _json) {
if (_json.containsKey("contests")) {
- contests = _json["contests"].map((value) => new Contest.fromJson(value)).toList();
+ contests = _json["contests"]
+ .map((value) => new Contest.fromJson(value))
+ .toList();
}
if (_json.containsKey("dropOffLocations")) {
- dropOffLocations = _json["dropOffLocations"].map((value) => new PollingLocation.fromJson(value)).toList();
+ dropOffLocations = _json["dropOffLocations"]
+ .map((value) => new PollingLocation.fromJson(value))
+ .toList();
}
if (_json.containsKey("earlyVoteSites")) {
- earlyVoteSites = _json["earlyVoteSites"].map((value) => new PollingLocation.fromJson(value)).toList();
+ earlyVoteSites = _json["earlyVoteSites"]
+ .map((value) => new PollingLocation.fromJson(value))
+ .toList();
}
if (_json.containsKey("election")) {
election = new Election.fromJson(_json["election"]);
@@ -2176,32 +2235,42 @@ class VoterInfoResponse {
mailOnly = _json["mailOnly"];
}
if (_json.containsKey("normalizedInput")) {
- normalizedInput = new SimpleAddressType.fromJson(_json["normalizedInput"]);
+ normalizedInput =
+ new SimpleAddressType.fromJson(_json["normalizedInput"]);
}
if (_json.containsKey("otherElections")) {
- otherElections = _json["otherElections"].map((value) => new Election.fromJson(value)).toList();
+ otherElections = _json["otherElections"]
+ .map((value) => new Election.fromJson(value))
+ .toList();
}
if (_json.containsKey("pollingLocations")) {
- pollingLocations = _json["pollingLocations"].map((value) => new PollingLocation.fromJson(value)).toList();
+ pollingLocations = _json["pollingLocations"]
+ .map((value) => new PollingLocation.fromJson(value))
+ .toList();
}
if (_json.containsKey("precinctId")) {
precinctId = _json["precinctId"];
}
if (_json.containsKey("state")) {
- state = _json["state"].map((value) => new AdministrationRegion.fromJson(value)).toList();
+ state = _json["state"]
+ .map((value) => new AdministrationRegion.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (contests != null) {
_json["contests"] = contests.map((value) => (value).toJson()).toList();
}
if (dropOffLocations != null) {
- _json["dropOffLocations"] = dropOffLocations.map((value) => (value).toJson()).toList();
+ _json["dropOffLocations"] =
+ dropOffLocations.map((value) => (value).toJson()).toList();
}
if (earlyVoteSites != null) {
- _json["earlyVoteSites"] = earlyVoteSites.map((value) => (value).toJson()).toList();
+ _json["earlyVoteSites"] =
+ earlyVoteSites.map((value) => (value).toJson()).toList();
}
if (election != null) {
_json["election"] = (election).toJson();
@@ -2216,10 +2285,12 @@ class VoterInfoResponse {
_json["normalizedInput"] = (normalizedInput).toJson();
}
if (otherElections != null) {
- _json["otherElections"] = otherElections.map((value) => (value).toJson()).toList();
+ _json["otherElections"] =
+ otherElections.map((value) => (value).toJson()).toList();
}
if (pollingLocations != null) {
- _json["pollingLocations"] = pollingLocations.map((value) => (value).toJson()).toList();
+ _json["pollingLocations"] =
+ pollingLocations.map((value) => (value).toJson()).toList();
}
if (precinctId != null) {
_json["precinctId"] = precinctId;
@@ -2255,7 +2326,8 @@ class VoterInfoSegmentResult {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (generatedMillis != null) {
_json["generatedMillis"] = generatedMillis;
}
« 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