Serializes the object to a map.
@override Map<String, dynamic> serialize() { return { "id": id, "isEmpty": isEmpty, "voters": voters.map((e) => e.serialize()).toList() }; }