toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (contests != null) 'contests': contests!,
      if (dropOffLocations != null) 'dropOffLocations': dropOffLocations!,
      if (earlyVoteSites != null) 'earlyVoteSites': earlyVoteSites!,
      if (election != null) 'election': election!,
      if (kind != null) 'kind': kind!,
      if (mailOnly != null) 'mailOnly': mailOnly!,
      if (normalizedInput != null) 'normalizedInput': normalizedInput!,
      if (otherElections != null) 'otherElections': otherElections!,
      if (pollingLocations != null) 'pollingLocations': pollingLocations!,
      if (precinctId != null) 'precinctId': precinctId!,
      if (precincts != null) 'precincts': precincts!,
      if (state != null) 'state': state!,
    };