toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (absenteeVotingInfoUrl != null)
        'absenteeVotingInfoUrl': absenteeVotingInfoUrl!,
      if (ballotInfoUrl != null) 'ballotInfoUrl': ballotInfoUrl!,
      if (correspondenceAddress != null)
        'correspondenceAddress': correspondenceAddress!,
      if (electionInfoUrl != null) 'electionInfoUrl': electionInfoUrl!,
      if (electionNoticeText != null)
        'electionNoticeText': electionNoticeText!,
      if (electionNoticeUrl != null) 'electionNoticeUrl': electionNoticeUrl!,
      if (electionOfficials != null) 'electionOfficials': electionOfficials!,
      if (electionRegistrationConfirmationUrl != null)
        'electionRegistrationConfirmationUrl':
            electionRegistrationConfirmationUrl!,
      if (electionRegistrationUrl != null)
        'electionRegistrationUrl': electionRegistrationUrl!,
      if (electionRulesUrl != null) 'electionRulesUrl': electionRulesUrl!,
      if (hoursOfOperation != null) 'hoursOfOperation': hoursOfOperation!,
      if (name != null) 'name': name!,
      if (physicalAddress != null) 'physicalAddress': physicalAddress!,
      if (voterServices != null) 'voter_services': voterServices!,
      if (votingLocationFinderUrl != null)
        'votingLocationFinderUrl': votingLocationFinderUrl!,
    };