fromData static method

Implementation

static WeightedVoteOption fromData(WeightedVoteDataArgs data) {
  return WeightedVoteOption(data.option!, double.parse(data.weight!));
}