Ballot class

An open ballot: one answer per question of the manifest, in any order. The bytes a cast's proof binds are the RFC 8785 (JCS) canonicalization of this object as received.

Constructors

Ballot({required ElectionId electionId, required DigestMultibase manifestDigest, required List<Answer> answers})
const
Ballot.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

answers → List<Answer>
final
electionId → String
final
hashCode → int
The hash code for this object.
no setterinherited
manifestDigest → String
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