toData method

Implementation

WeightedVoteDataArgs toData() {
  return WeightedVoteDataArgs()
    ..weight = weight.toString()
    ..option = option;
}