ElectionResult class
An election's result, computable by anyone who can read its board from the board and the registration alone (VTI-VOT-070).
Constructors
-
ElectionResult({required ElectionId electionId, required DigestMultibase manifestDigest, required int ballotsCounted, required List<
QuestionResult> questions, required BoardHead head}) -
const
-
ElectionResult.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- ballotsCounted → int
-
final
- electionId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- head → BoardHead
-
The head of the board as it stood at close: the result counts exactly its entries.
final
- manifestDigest → String
-
final
-
questions
→ List<
QuestionResult> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited