fromJSON static method

Vote fromJSON(
  1. VotesJSON data
)

Implementation

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