fromJSONWithOption static method

WeightedVoteOption fromJSONWithOption(
  1. VoteOptionJSON data
)

Implementation

static WeightedVoteOption fromJSONWithOption(VoteOptionJSON data) {
  return WeightedVoteOption(data.option, double.parse(data.weight));
}