fromJSON static method
Implementation
static Vote fromJSON(VotesJSON data) {
return Vote(
data.proposal_id,
data.voter,
data.options!
.map((e) => WeightedVoteOption.fromJSONWithOption(e))
.toList());
}
static Vote fromJSON(VotesJSON data) {
return Vote(
data.proposal_id,
data.voter,
data.options!
.map((e) => WeightedVoteOption.fromJSONWithOption(e))
.toList());
}