toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (ballotPlacement != null) 'ballotPlacement': ballotPlacement!,
      if (ballotTitle != null) 'ballotTitle': ballotTitle!,
      if (candidates != null) 'candidates': candidates!,
      if (district != null) 'district': district!,
      if (electorateSpecifications != null)
        'electorateSpecifications': electorateSpecifications!,
      if (level != null) 'level': level!,
      if (numberElected != null) 'numberElected': numberElected!,
      if (numberVotingFor != null) 'numberVotingFor': numberVotingFor!,
      if (office != null) 'office': office!,
      if (primaryParties != null) 'primaryParties': primaryParties!,
      if (referendumBallotResponses != null)
        'referendumBallotResponses': referendumBallotResponses!,
      if (referendumBrief != null) 'referendumBrief': referendumBrief!,
      if (referendumConStatement != null)
        'referendumConStatement': referendumConStatement!,
      if (referendumEffectOfAbstain != null)
        'referendumEffectOfAbstain': referendumEffectOfAbstain!,
      if (referendumPassageThreshold != null)
        'referendumPassageThreshold': referendumPassageThreshold!,
      if (referendumProStatement != null)
        'referendumProStatement': referendumProStatement!,
      if (referendumSubtitle != null)
        'referendumSubtitle': referendumSubtitle!,
      if (referendumText != null) 'referendumText': referendumText!,
      if (referendumTitle != null) 'referendumTitle': referendumTitle!,
      if (referendumUrl != null) 'referendumUrl': referendumUrl!,
      if (roles != null) 'roles': roles!,
      if (sources != null) 'sources': sources!,
      if (special != null) 'special': special!,
      if (type != null) 'type': type!,
    };