@override Object toJson() => { if (candidates.isNotDefault) 'candidates': [for (final i in candidates) i.toJson()], };