toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (administrationRegionId != null)
        'administrationRegionId': administrationRegionId!,
      if (contestId != null) 'contestId': contestId!,
      if (datasetId != null) 'datasetId': datasetId!,
      if (earlyVoteSiteId != null) 'earlyVoteSiteId': earlyVoteSiteId!,
      if (electoralDistrictId != null)
        'electoralDistrictId': electoralDistrictId!,
      if (id != null) 'id': id!,
      if (mailOnly != null) 'mailOnly': mailOnly!,
      if (name != null) 'name': name!,
      if (number != null) 'number': number!,
      if (ocdId != null) 'ocdId': ocdId!,
      if (pollingLocationId != null) 'pollingLocationId': pollingLocationId!,
      if (spatialBoundaryId != null) 'spatialBoundaryId': spatialBoundaryId!,
      if (splitName != null) 'splitName': splitName!,
      if (ward != null) 'ward': ward!,
    };