IndividualVoteFromJson class
TRANSFORM THE JSON FILE FROM OPEN DATA ASSEMBLEE NATIONALE TO :
ScrutinFromJson OBJECT that includes : • ref to scrutin (uuid, organe, date) • type of vote (code, title, majority) • result of vote as announced • title of the vote and its supplier • an array of GroupVotesFromJson ↳ each GroupVotesFromJson OBJECT includes : • ref to group • number of members • votes in integer (for, against, abstention, did not vote but attended, did not attend) • an array of IndividualVoteFromJson ↳ each IndividualVoteFromJson OBJECT includes : • ref to voter (ref as a person, ref as a mandate) • whether it is "per delegation" or not • the actual vote
Constructors
- IndividualVoteFromJson(String? acteurRef, String? mandatRef, bool? parDelegation, bool? votedFor, bool? votedAgainst, bool? didNotVote, bool? votedAbstention)
- IndividualVoteFromJson is the person voting
-
IndividualVoteFromJson.fromFrenchNationalAssemblyJson(Map<
String, dynamic> json, String voteReceived) - Mapping from JSON
Properties
- acteurRef ↔ String?
-
getter/setter pair
- didNotAttend → bool
-
In case he was not even present for vote
no setter
- didNotVote ↔ bool?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- mandatRef ↔ String?
-
getter/setter pair
- parDelegation ↔ bool?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- votedAbstention ↔ bool?
-
getter/setter pair
- votedAgainst ↔ bool?
-
getter/setter pair
- votedFor ↔ bool?
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited