AdministrativeBody.fromJson constructor
AdministrativeBody.fromJson(
- Map json_
Implementation
AdministrativeBody.fromJson(core.Map json_)
: this(
absenteeVotingInfoUrl: json_.containsKey('absenteeVotingInfoUrl')
? json_['absenteeVotingInfoUrl'] as core.String
: null,
ballotInfoUrl: json_.containsKey('ballotInfoUrl')
? json_['ballotInfoUrl'] as core.String
: null,
correspondenceAddress: json_.containsKey('correspondenceAddress')
? SimpleAddressType.fromJson(json_['correspondenceAddress']
as core.Map<core.String, core.dynamic>)
: null,
electionInfoUrl: json_.containsKey('electionInfoUrl')
? json_['electionInfoUrl'] as core.String
: null,
electionNoticeText: json_.containsKey('electionNoticeText')
? json_['electionNoticeText'] as core.String
: null,
electionNoticeUrl: json_.containsKey('electionNoticeUrl')
? json_['electionNoticeUrl'] as core.String
: null,
electionOfficials: json_.containsKey('electionOfficials')
? (json_['electionOfficials'] as core.List)
.map((value) => ElectionOfficial.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
electionRegistrationConfirmationUrl:
json_.containsKey('electionRegistrationConfirmationUrl')
? json_['electionRegistrationConfirmationUrl'] as core.String
: null,
electionRegistrationUrl: json_.containsKey('electionRegistrationUrl')
? json_['electionRegistrationUrl'] as core.String
: null,
electionRulesUrl: json_.containsKey('electionRulesUrl')
? json_['electionRulesUrl'] as core.String
: null,
hoursOfOperation: json_.containsKey('hoursOfOperation')
? json_['hoursOfOperation'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
physicalAddress: json_.containsKey('physicalAddress')
? SimpleAddressType.fromJson(json_['physicalAddress']
as core.Map<core.String, core.dynamic>)
: null,
voterServices: json_.containsKey('voter_services')
? (json_['voter_services'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
votingLocationFinderUrl: json_.containsKey('votingLocationFinderUrl')
? json_['votingLocationFinderUrl'] as core.String
: null,
);