toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (candidateUrl != null) 'candidateUrl': candidateUrl!,
if (channels != null) 'channels': channels!,
if (email != null) 'email': email!,
if (name != null) 'name': name!,
if (orderOnBallot != null) 'orderOnBallot': orderOnBallot!,
if (party != null) 'party': party!,
if (phone != null) 'phone': phone!,
if (photoUrl != null) 'photoUrl': photoUrl!,
};